Skip to content

Commit

Permalink
fix(list-box): increase specificity on closed menu (#6017)
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan authored and joshblack committed May 13, 2020
1 parent 105c8b6 commit 3e320ee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/components/src/components/list-box/_list-box.scss
Expand Up @@ -426,12 +426,17 @@ $list-box-menu-width: rem(300px);
right: 0;
width: $list-box-width;
background-color: $ui-01;
max-height: 0;
transition: max-height $duration--fast-02 motion(standard, productive);
overflow-y: auto;
z-index: z('dropdown');
}

.#{$prefix}--list-box
.#{$prefix}--list-box__field[aria-expanded='false']
+ .#{$prefix}--list-box__menu {
max-height: 0;
}

.#{$prefix}--list-box--expanded .#{$prefix}--list-box__menu {
max-height: rem(140px);
}
Expand Down

0 comments on commit 3e320ee

Please sign in to comment.