Skip to content

Commit

Permalink
fix: Sidebar item menu position (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo authored Oct 8, 2020
1 parent 9ccb237 commit 0fead45
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 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.
8 changes: 6 additions & 2 deletions packages/fuselage/src/components/Sidebar/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ $sidebar-item-color-selected: theme('sidebar-item-color-selected', colors.foregr
&-item {
@extend %sidebar-base;
padding-block: lengths.padding(4);
padding-inline: lengths.padding(16);
padding-inline-start: lengths.padding(16);

color: $sidebar-item-color;

Expand Down Expand Up @@ -151,9 +151,13 @@ $sidebar-item-color-selected: theme('sidebar-item-color-selected', colors.foregr

&__menu {
position: absolute;

top: 50%;
right: 0;

margin-block: lengths.margin(4);
margin-inline: lengths.margin(4);

transform: translateY(-50%);
}

&__menu-wraper {
Expand Down

0 comments on commit 0fead45

Please sign in to comment.