Skip to content

Commit f157270

Browse files
committed
fix(select): replace RH color tokens with PF v4 global tokens
Closes #2954 Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1377f14 commit f157270

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

.changeset/fix-select-tokens.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@patternfly/elements": patch
3+
---
4+
5+
`pf-select`: replaced Red Hat Design System color tokens with
6+
PatternFly v4 global tokens.

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: var(--_pf-option-selected-background-color, var(--rh-color-gray-20, #e0e0e0));
18+
background-color: var(--_pf-option-selected-background-color, var(--pf-global--BackgroundColor--200, #e0e0e0));
1919
}
2020

2121
#outer {

elements/pf-select/pf-select.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +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);
8+
--_pf-option-selected-background-color: var(--pf-global--BackgroundColor--200, #e0e0e0);
99
/** Select toggle top padding */
1010
--pf-c-select__toggle--PaddingTop: var(--pf-global--spacer--form-element, 0.375rem);
1111
/** Select toggle right padding */

0 commit comments

Comments
 (0)