Skip to content

Commit

Permalink
fix(list-box): update background, horizontal rule colors (#5707)
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan authored Mar 26, 2020
1 parent 1c61f6b commit c76742b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
17 changes: 16 additions & 1 deletion packages/components/src/components/list-box/_list-box.scss
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,16 @@ $list-box-menu-width: rem(300px);
background-color: $field-02;
}

.#{$prefix}--list-box--light .#{$prefix}--list-box__menu {
background: $field-02;
}

.#{$prefix}--list-box--light .#{$prefix}--list-box__menu-item__option {
border-top-color: $decorative-01;
}

.#{$prefix}--list-box--light.#{$prefix}--list-box--expanded {
border-bottom-width: 0;
border-bottom-color: $decorative-01;
}

// Disabled state for `list-box`
Expand Down Expand Up @@ -580,6 +588,13 @@ $list-box-menu-width: rem(300px);
color: $text-01;
}

// Hide top border if previous list item is selected
.#{$prefix}--list-box__menu-item--active
+ .#{$prefix}--list-box__menu-item
> .#{$prefix}--list-box__menu-item__option {
border-top-color: transparent;
}

.#{$prefix}--list-box__menu-item__selected-icon {
display: none;
position: absolute;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
.#{$prefix}--overflow-menu--light.#{$prefix}--overflow-menu--open,
.#{$prefix}--overflow-menu--light.#{$prefix}--overflow-menu--open
.#{$prefix}--overflow-menu__trigger {
background-color: $ui-02;
background-color: $field-02;
}

.#{$prefix}--overflow-menu__icon {
Expand Down Expand Up @@ -167,6 +167,10 @@
border-top: 1px solid $ui-03;
}

.#{$prefix}--overflow-menu--light .#{$prefix}--overflow-menu--divider {
border-top: 1px solid $decorative-01;
}

a.#{$prefix}--overflow-menu-options__btn::before {
content: '';
height: 100%;
Expand Down Expand Up @@ -228,6 +232,11 @@
border-top: 1px solid $ui-03;
}

.#{$prefix}--overflow-menu--light
.#{$prefix}--overflow-menu-options__option--danger {
border-top: 1px solid $decorative-01;
}

.#{$prefix}--overflow-menu-options__option--danger
.#{$prefix}--overflow-menu-options__btn:hover,
.#{$prefix}--overflow-menu-options__option--danger
Expand Down

0 comments on commit c76742b

Please sign in to comment.