Skip to content

Commit

Permalink
fix(list-box): ensure size variants are in effect
Browse files Browse the repository at this point in the history
This change ensures the style rule in `.bx--list-box--xl` for dropdown
size wins over one in `.bx--dropdown` or any ones in applicatoin styles
(for default size), by expressing that they are for non-default styles
and should win order the one for the default size.

Fixes carbon-design-system#4916.
  • Loading branch information
asudoh committed Dec 20, 2019
1 parent 8911fe8 commit 615bf4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components/src/components/list-box/_list-box.scss
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ $list-box-menu-width: rem(300px);
}
}

.#{$prefix}--list-box--xl {
.#{$prefix}--list-box.#{$prefix}--list-box--xl {
height: rem(48px);
max-height: rem(48px);
}

.#{$prefix}--list-box--sm {
.#{$prefix}--list-box.#{$prefix}--list-box--sm {
height: rem(32px);
max-height: rem(32px);
}
Expand Down

0 comments on commit 615bf4d

Please sign in to comment.