Skip to content

Commit

Permalink
feat: revert the customized style on nested items
Browse files Browse the repository at this point in the history
Signed-off-by: SuZhou-Joe <[email protected]>
  • Loading branch information
SuZhou-Joe committed Sep 26, 2024
1 parent 8b5186b commit 9a8bc17
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 28 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,14 @@
border: none !important;

.nav-link-item {
padding: $euiSizeXS $euiSize;
padding: $euiSizeXS $euiSizeS;
border-radius: $euiSizeS;
box-shadow: none;
margin-bottom: 0;
margin-top: 0;

.nav-link-item-btn {
margin-bottom: 0;
padding: 0;

&::after {
display: none;
}
}
}

Expand All @@ -31,17 +26,6 @@
padding: $euiSizeS;
}

.nav-link-parent-item-button {
> span {
flex-direction: row-reverse;

> * {
margin-right: $euiSizeS;
margin-left: 0;
}
}
}

.nav-link-fake-item {
margin-top: 0;
}
Expand All @@ -51,15 +35,11 @@
}

.nav-nested-item {
margin-left: -10px;
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%;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,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')
),
Expand Down

0 comments on commit 9a8bc17

Please sign in to comment.