Skip to content

Commit

Permalink
fix: Sidebar menu positioning (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriellsh authored Oct 13, 2020
1 parent 6b115eb commit 5aa2a74
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/fuselage/src/components/Sidebar/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ $sidebar-item-color-selected: theme('sidebar-item-color-selected', colors.foregr

&:hover &__menu-wraper,
&:focus-within &__menu-wraper {
padding-inline: lengths.padding(16);
width: lengths.size(28);

opacity: 1;
}
Expand All @@ -153,19 +153,18 @@ $sidebar-item-color-selected: theme('sidebar-item-color-selected', colors.foregr
position: absolute;

top: 50%;
right: 0;

margin-inline: lengths.margin(-8);

transform: translateY(-50%);
}

&__menu-wraper {
position: relative;

height: 100%;
flex-shrink: 0;

padding-inline: 0;
width: 0;

height: 100%;

opacity: 0;
}
Expand Down

0 comments on commit 5aa2a74

Please sign in to comment.