should show all use case when current na
class="euiSideNav euiSideNav-isOpenMobile"
>
should show all use case when current na
title="link-in-essentials"
>
diff --git a/src/core/public/chrome/ui/header/__snapshots__/collapsible_nav_groups.test.tsx.snap b/src/core/public/chrome/ui/header/__snapshots__/collapsible_nav_groups.test.tsx.snap
index 3d923a49dd80..c428f7f774b8 100644
--- a/src/core/public/chrome/ui/header/__snapshots__/collapsible_nav_groups.test.tsx.snap
+++ b/src/core/public/chrome/ui/header/__snapshots__/collapsible_nav_groups.test.tsx.snap
@@ -9,7 +9,7 @@ exports[`
should render correctly 1`] = `
class="euiSideNav euiSideNav-isOpenMobile"
>
should render correctly 1`] = `
>
@@ -46,7 +46,8 @@ exports[` should render correctly 1`] = `
title="pure link"
>
@@ -76,7 +77,8 @@ exports[` should render correctly 1`] = `
title="subLink"
>
@@ -89,7 +91,7 @@ exports[` should render correctly 1`] = `
should render correctly 1`] = `
title="category-1"
>
category-1
@@ -118,7 +120,7 @@ exports[`
should render correctly 1`] = `
>
@@ -130,7 +132,8 @@ exports[` should render correctly 1`] = `
title="link-in-category"
>
@@ -160,7 +163,8 @@ exports[` should render correctly 1`] = `
title="sub-link-in-category"
>
@@ -187,7 +191,8 @@ exports[` should render correctly 1`] = `
title="link-in-category-2"
>
diff --git a/src/core/public/chrome/ui/header/collapsible_nav_group_enabled.scss b/src/core/public/chrome/ui/header/collapsible_nav_group_enabled.scss
index 27537d9af8eb..48eab41e7cf1 100644
--- a/src/core/public/chrome/ui/header/collapsible_nav_group_enabled.scss
+++ b/src/core/public/chrome/ui/header/collapsible_nav_group_enabled.scss
@@ -2,32 +2,29 @@
border: none !important;
.nav-link-item {
- padding: calc($euiSize / 4) $euiSize;
- border-radius: $euiSize;
+ padding: $euiSizeXS $euiSizeS;
+ border-radius: $euiSizeS;
box-shadow: none;
margin-bottom: 0;
margin-top: 0;
.nav-link-item-btn {
margin-bottom: 0;
-
- &::after {
- display: none;
- }
}
}
- .nav-link-parent-item-button {
- > span {
- flex-direction: row-reverse;
+ .nav-link-item-category-item {
+ margin-top: $euiSizeL;
- > * {
- margin-right: $euiSizeS;
- margin-left: 2px;
- }
+ > * {
+ margin-bottom: 0;
}
}
+ .nav-link-item-category-title {
+ padding: 0;
+ }
+
.nav-link-fake-item {
margin-top: 0;
}
@@ -37,15 +34,11 @@
}
.nav-nested-item {
- margin-bottom: 4px;
+ padding: $euiSizeS 0;
- &::after {
- height: unset;
- }
-
- .nav-link-item-btn {
- padding-left: 0;
- padding-right: 0;
+ // The height is used to comply with the extra padding
+ &:last-of-type::after {
+ height: 50%;
}
}
diff --git a/src/core/public/chrome/ui/header/collapsible_nav_group_enabled.tsx b/src/core/public/chrome/ui/header/collapsible_nav_group_enabled.tsx
index d08e2a413d42..913a3bf811ab 100644
--- a/src/core/public/chrome/ui/header/collapsible_nav_group_enabled.tsx
+++ b/src/core/public/chrome/ui/header/collapsible_nav_group_enabled.tsx
@@ -324,6 +324,7 @@ export function CollapsibleNavGroupEnabled({
paddingSize={!isNavOpen ? 's' : 'l'}
hasShadow={false}
className="eui-yScroll flex-1-container"
+ style={{ paddingTop: 0 }}
>
{shouldShowCollapsedNavHeaderContent && collapsibleNavHeaderRender ? (
<>
@@ -369,17 +370,17 @@ export function CollapsibleNavGroupEnabled({
return (
<>
{rendeLeftNav()}
-
- {isNavOpen
- ? rendeLeftNav({
- type: 'overlay',
- size: undefined,
- outsideClickCloses: true,
- paddingSize: undefined,
- ownFocus: true,
- })
- : null}
-
+ {isNavOpen ? (
+
+ {rendeLeftNav({
+ type: 'overlay',
+ size: undefined,
+ outsideClickCloses: true,
+ paddingSize: undefined,
+ ownFocus: true,
+ })}
+
+ ) : null}
>
);
}
diff --git a/src/core/public/chrome/ui/header/collapsible_nav_group_enabled_top.scss b/src/core/public/chrome/ui/header/collapsible_nav_group_enabled_top.scss
deleted file mode 100644
index 25f4385775ec..000000000000
--- a/src/core/public/chrome/ui/header/collapsible_nav_group_enabled_top.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-.leftNavTopIcon {
- color: $euiColorMediumShade;
-}
diff --git a/src/core/public/chrome/ui/header/collapsible_nav_group_enabled_top.tsx b/src/core/public/chrome/ui/header/collapsible_nav_group_enabled_top.tsx
index 3d1535992a3f..7ec738874686 100644
--- a/src/core/public/chrome/ui/header/collapsible_nav_group_enabled_top.tsx
+++ b/src/core/public/chrome/ui/header/collapsible_nav_group_enabled_top.tsx
@@ -22,7 +22,6 @@ import { ChromeNavGroupServiceStartContract, NavGroupItemInMap } from '../../nav
import { ChromeNavLink } from '../../nav_links';
import { ALL_USE_CASE_ID } from '../../../../../core/utils';
import { fulfillRegistrationLinksToChromeNavLinks } from '../../utils';
-import './collapsible_nav_group_enabled_top.scss';
export interface CollapsibleNavTopProps {
homeLink?: ChromeNavLink;
@@ -131,8 +130,8 @@ export const CollapsibleNavTop = ({
@@ -151,7 +150,9 @@ export const CollapsibleNavTop = ({
{currentNavGroup?.title && (
<>
- {currentNavGroup?.title}
+
+ {currentNavGroup?.title}
+
>
)}
diff --git a/src/core/public/chrome/ui/header/collapsible_nav_groups.tsx b/src/core/public/chrome/ui/header/collapsible_nav_groups.tsx
index 53a75aeaaddd..603cfce6e299 100644
--- a/src/core/public/chrome/ui/header/collapsible_nav_groups.tsx
+++ b/src/core/public/chrome/ui/header/collapsible_nav_groups.tsx
@@ -4,7 +4,7 @@
*/
import './collapsible_nav_group_enabled.scss';
-import { EuiFlexItem, EuiSideNavItemType, EuiSideNav, EuiText } from '@elastic/eui';
+import { EuiFlexItem, EuiSideNavItemType, EuiSideNav, EuiText, EuiTitle } from '@elastic/eui';
import { i18n } from '@osd/i18n';
import React from 'react';
import classNames from 'classnames';
@@ -58,7 +58,13 @@ export function NavGroups({
return {
id: `${link.id}-${link.title}`,
- name: {link.title} ,
+ name: (
+
+
+ {link.title}
+
+
+ ),
onClick: euiListItem.onClick,
href: euiListItem.href,
emphasize: euiListItem.isActive,
@@ -103,7 +109,6 @@ export function NavGroups({
href: undefined,
onClick: undefined,
className: classNames(props.className, 'nav-link-parent-item'),
- buttonClassName: classNames(props.buttonClassName, 'nav-link-parent-item-button'),
items: navLink.links.map((subNavLink) =>
createSideNavItem(subNavLink, level + 1, 'nav-nested-item')
),
@@ -128,9 +133,16 @@ export function NavGroups({
if (navLink.itemType === LinkItemType.CATEGORY) {
return {
id: navLink.category?.id ?? '',
- name: {navLink.category?.label ?? ''}
,
+ name: (
+
+
+ {navLink.category?.label ?? ''}
+
+
+ ),
items: navLink.links?.map((link) => createSideNavItem(link, level + 1)),
'aria-label': navLink.category?.label,
+ className: 'nav-link-item-category-item',
};
}
@@ -143,7 +155,7 @@ export function NavGroups({
return (
-
+
{suffix}
);
diff --git a/src/plugins/management/public/components/feature_cards/__snapshots__/feature_cards.test.tsx.snap b/src/plugins/management/public/components/feature_cards/__snapshots__/feature_cards.test.tsx.snap
index e5f9a1975d83..1a1c2249537a 100644
--- a/src/plugins/management/public/components/feature_cards/__snapshots__/feature_cards.test.tsx.snap
+++ b/src/plugins/management/public/components/feature_cards/__snapshots__/feature_cards.test.tsx.snap
@@ -11,15 +11,15 @@ exports[` render with complex navLinks 1`] = `
class="euiSpacer euiSpacer--m"
/>
render with complex navLinks 1`] = `
id="generated-idTitle"
>
title1
-
+
render with complex navLinks 1`] = `
id="generated-idTitle"
>
title2
-
+