Skip to content

Commit

Permalink
fix(Modal): ensure dropdown menu layer is correct (#14303)
Browse files Browse the repository at this point in the history
* fix(Modal): ensure dropdown menu layer is correct

* style(Modal): add more overrides for Dropdown in dark theme
  • Loading branch information
tw15egan authored Aug 7, 2023
1 parent 2b8b66c commit 379ea23
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions packages/styles/scss/components/modal/_modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@
background-color: $field-02;
}

// Override to align layer token with field
.#{$prefix}--list-box__menu {
background-color: $layer-02;
}

.#{$prefix}--number__rule-divider {
background-color: $border-subtle-02;
}
Expand All @@ -77,12 +82,12 @@

.#{$prefix}--list-box__menu-item:hover
.#{$prefix}--list-box__menu-item__option {
border-top-color: $layer-hover;
border-top-color: $layer-hover-02;
}

.#{$prefix}--list-box__menu-item--active:hover
.#{$prefix}--list-box__menu-item__option {
border-top-color: $layer-selected-hover;
border-top-color: $layer-selected-hover-02;
}

// Fluid inputs
Expand All @@ -106,6 +111,23 @@
background-color: $field-01;
}

// Override to align layer token with field
.#{$prefix}--list-box__wrapper--fluid .#{$prefix}--list-box__menu {
background-color: $layer-01;
}

.#{$prefix}--list-box__menu-item:hover {
background-color: $layer-hover-02;
}

.#{$prefix}--list-box__menu-item--active {
background-color: $layer-selected-02;
}

.#{$prefix}--list-box__menu-item--active:hover {
background-color: $layer-selected-hover-02;
}

.#{$prefix}--number-input--fluid
.#{$prefix}--number__control-btn:hover::before,
.#{$prefix}--number-input--fluid
Expand Down

0 comments on commit 379ea23

Please sign in to comment.