Skip to content

Commit be4e770

Browse files
tw15eganAlessandra Davilakodiakhq[bot]
authored
fix(Select): fix background issues with inline variant optgroups (#9636)
* fix(Select): fix background issues with inline variant optgroups * fix(Select): set select background so that background is rendered Co-authored-by: Alessandra Davila <aledavila@ibm.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent d02a8e5 commit be4e770

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

packages/components/src/components/pagination/_pagination.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ $css--helpers: true;
8989
min-width: auto;
9090
height: 100%;
9191
padding: 0 2.25rem 0 $spacing-05;
92+
background-color: $ui-01;
9293
line-height: $size-md;
9394
}
9495

packages/components/src/components/select/_select.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,10 @@
172172
opacity: 1;
173173
}
174174

175-
.#{$prefix}--select-optgroup,
175+
optgroup.#{$prefix}--select-optgroup,
176176
.#{$prefix}--select-option {
177177
// For the options to show in IE11
178+
background-color: $background-hover;
178179
color: $text-01;
179180

180181
&:disabled {
@@ -211,7 +212,7 @@
211212
padding-right: $spacing-07;
212213
padding-left: $carbon--spacing-03;
213214
border-bottom: none;
214-
background-color: transparent;
215+
background-color: $background;
215216
color: $text-01;
216217
}
217218

0 commit comments

Comments
 (0)