Skip to content

Commit 379ea23

Browse files
authored
fix(Modal): ensure dropdown menu layer is correct (#14303)
* fix(Modal): ensure dropdown menu layer is correct * style(Modal): add more overrides for Dropdown in dark theme
1 parent 2b8b66c commit 379ea23

1 file changed

Lines changed: 24 additions & 2 deletions

File tree

packages/styles/scss/components/modal/_modal.scss

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@
6767
background-color: $field-02;
6868
}
6969

70+
// Override to align layer token with field
71+
.#{$prefix}--list-box__menu {
72+
background-color: $layer-02;
73+
}
74+
7075
.#{$prefix}--number__rule-divider {
7176
background-color: $border-subtle-02;
7277
}
@@ -77,12 +82,12 @@
7782

7883
.#{$prefix}--list-box__menu-item:hover
7984
.#{$prefix}--list-box__menu-item__option {
80-
border-top-color: $layer-hover;
85+
border-top-color: $layer-hover-02;
8186
}
8287

8388
.#{$prefix}--list-box__menu-item--active:hover
8489
.#{$prefix}--list-box__menu-item__option {
85-
border-top-color: $layer-selected-hover;
90+
border-top-color: $layer-selected-hover-02;
8691
}
8792

8893
// Fluid inputs
@@ -106,6 +111,23 @@
106111
background-color: $field-01;
107112
}
108113

114+
// Override to align layer token with field
115+
.#{$prefix}--list-box__wrapper--fluid .#{$prefix}--list-box__menu {
116+
background-color: $layer-01;
117+
}
118+
119+
.#{$prefix}--list-box__menu-item:hover {
120+
background-color: $layer-hover-02;
121+
}
122+
123+
.#{$prefix}--list-box__menu-item--active {
124+
background-color: $layer-selected-02;
125+
}
126+
127+
.#{$prefix}--list-box__menu-item--active:hover {
128+
background-color: $layer-selected-hover-02;
129+
}
130+
109131
.#{$prefix}--number-input--fluid
110132
.#{$prefix}--number__control-btn:hover::before,
111133
.#{$prefix}--number-input--fluid

0 commit comments

Comments
 (0)