Skip to content

Commit

Permalink
refactor: fix nav item spacing (#2113)
Browse files Browse the repository at this point in the history
* refactor: added spacing between icon and text

* test: regenerated screenshots

* refactor: fixed margin for full width

---------

Co-authored-by: Maximilian Franzke <[email protected]>
Co-authored-by: Nicolas Merget <[email protected]>
  • Loading branch information
3 people authored Feb 12, 2024
1 parent 8dc98ce commit cf043f5
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@
&:active {
@include colors.get-variant-bg-color(0.24);
}

&::after {
--db-icon-margin-start: auto;
}
}

.db-navigation-item {
Expand Down Expand Up @@ -117,11 +113,21 @@
font-weight: normal;
}

&:not([data-width="full"]) {
.db-navigation-item-expand-button {
&::after {
--db-icon-margin-start: #{variables.$db-spacing-fixed-sm};
}
}
}

&[data-width="full"] {
inline-size: 100%;

&::after {
--db-icon-margin-start: auto;
.db-navigation-item-expand-button {
&::after {
--db-icon-margin-start: auto;
}
}
}

Expand Down

0 comments on commit cf043f5

Please sign in to comment.