fix: in WDS TextInputcolor token fg is not applied to entered text (#27533)

Fixes #27511
This commit is contained in:
Pawan Kumar 2023-09-22 12:34:10 +05:30 committed by GitHub
parent f29cefaf0b
commit f45c206acc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 0 deletions

View File

@ -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();

View File

@ -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(

View File

@ -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,