Skip to content

Commit a413c2a

Browse files
committed
chore: pf-option selected background color variable added
1 parent 9136ae3 commit a413c2a

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

elements/pf-search-input/pf-search-input.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,4 +372,9 @@ div.visually-hidden {
372372
height: 0;
373373
padding: 0;
374374
visibility: hidden;
375+
}
376+
377+
::slotted(pf-option[selected]) {
378+
--_pf-option-svg-display: none;
379+
--_pf-option-selected-background-color: var(--pf-global--BackgroundColor--100, #fff);
375380
}

elements/pf-select/pf-option.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
:host(:focus) #outer,
1616
:host(:hover) #outer,
1717
#outer.selected {
18-
background-color: #e0e0e0;
18+
background-color: var(--_pf-option-selected-background-color, var(--rh-color-gray-20, #e0e0e0));
1919
}
2020

2121
#outer {

elements/pf-select/pf-select.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
color: var(--pf-global--Color--100, #151515);
66
--_pf-option-checkboxes-display: none;
77
--_pf-option-svg-display: block;
8+
--_pf-option-selected-background-color: var(--rh-color-gray-20, #e0e0e0);
89
--pf-c-select__toggle--PaddingTop: var(--pf-global--spacer--form-element, 0.375rem);
910
--pf-c-select__toggle--PaddingRight: var(--pf-global--spacer--sm, 0.5rem);
1011
--pf-c-select__toggle--PaddingBottom: var(--pf-global--spacer--form-element, 0.375rem);

0 commit comments

Comments
 (0)