fix: in WDS TextInputcolor token fg is not applied to entered text (#27533)
Fixes #27511
This commit is contained in:
parent
f29cefaf0b
commit
f45c206acc
|
|
@ -574,6 +574,16 @@ describe("fgNeutral color", () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe("fgNeutralSubtle color", () => {
|
||||
it("should return correct color", () => {
|
||||
const { fgNeutralSubtle } = new DarkModeTheme(
|
||||
"oklch(0.45 0.03 60)",
|
||||
).getColors();
|
||||
|
||||
expect(fgNeutralSubtle).toEqual("rgb(59.646% 59.646% 59.646%)");
|
||||
});
|
||||
});
|
||||
|
||||
describe("fgPositive color", () => {
|
||||
it("should return correct color when chroma < 0.04", () => {
|
||||
const { fgPositive } = new DarkModeTheme("oklch(0.45 0.03 60)").getColors();
|
||||
|
|
|
|||
|
|
@ -604,6 +604,16 @@ describe("fgNeutral color", () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe("fgNeutralSubtle color", () => {
|
||||
it("should return correct color", () => {
|
||||
const { fgNeutralSubtle } = new LightModeTheme(
|
||||
"oklch(0.45 0.03 60)",
|
||||
).getColors();
|
||||
|
||||
expect(fgNeutralSubtle).toEqual("rgb(44.47% 44.47% 44.47%)");
|
||||
});
|
||||
});
|
||||
|
||||
describe("fgPositive color", () => {
|
||||
it("should return correct color when chroma < 0.04", () => {
|
||||
const { fgPositive } = new LightModeTheme(
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ export const textInputStyles = css<HeadlessTextInputProps>`
|
|||
background-color: transparent;
|
||||
font-family: inherit;
|
||||
flex-grow: 1;
|
||||
color: var(--color-fg);
|
||||
|
||||
&:autofill,
|
||||
&:autofill:hover,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user