♻️(react) update token.ts to handles themes
Some components were using wrong design tokens and this was noticed only when changing themes, like using hard-coded "white" instead of "greyscale-000".
This commit is contained in:
@@ -58,6 +58,7 @@
|
||||
margin: 0;
|
||||
color: var(--c--components--forms-select--color);
|
||||
font-size: var(--c--components--forms-select--font-size);
|
||||
background-color: var(--c--components--forms-select--background-color);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -18,8 +18,8 @@ export const tokens = (defaults: DefaultTokens) => ({
|
||||
"item-color": defaults.theme.colors["greyscale-800"],
|
||||
"item-color--disabled": defaults.theme.colors["greyscale-500"],
|
||||
"item-font-size": defaults.theme.font.sizes.l,
|
||||
"background-color": "white",
|
||||
"menu-background-color": "white",
|
||||
"background-color": defaults.theme.colors["greyscale-000"],
|
||||
"menu-background-color": defaults.theme.colors["greyscale-000"],
|
||||
"label-color--focus": defaults.theme.colors["primary-600"],
|
||||
"multi-pill-background-color": defaults.theme.colors["greyscale-200"],
|
||||
"multi-pill-border-radius": "2px",
|
||||
|
||||
Reference in New Issue
Block a user