Skip to content

Commit b2a44c3

Browse files
authored
Add CSS variable to contrast TextInput (#6270)
1 parent ccd5bab commit b2a44c3

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/itchy-rice-rescue.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/react": patch
3+
---
4+
5+
Add CSS variable to `contrast` `TextInput`

packages/react/src/internal/components/TextInputWrapper.module.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@
4444
}
4545

4646
&:where([data-contrast]) {
47-
background-color: var(--bgColor-inset);
47+
/* this variable is available behind a feature flag in gh/gh */
48+
/* stylelint-disable-next-line primer/colors */
49+
background-color: var(--control-bgColor-contrast, var(--bgColor-inset));
4850
}
4951

5052
&:where([data-disabled]) {

0 commit comments

Comments
 (0)