Skip to content

Commit a7e7a2a

Browse files
committed
Bug 1941402 - Move --table-row-background-color/-alternate design tokens to background-color table in Storybook r=reusable-components-reviewers,desktop-theme-reviewers,hjones
Differential Revision: https://phabricator.services.mozilla.com/D234720
1 parent 34af33c commit a7e7a2a

File tree

2 files changed

+20
-24
lines changed

2 files changed

+20
-24
lines changed

toolkit/themes/shared/design-system/tokens-storybook.mjs

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,26 @@ export const storybookTables = {
191191
value: "var(--button-background-color-hover)",
192192
name: "--button-background-color-ghost-hover",
193193
},
194+
{
195+
value: { default: "var(--background-color-canvas)" },
196+
name: "--table-row-background-color",
197+
},
198+
{
199+
value: {
200+
forcedColors: "var(--background-color-canvas)",
201+
brand: {
202+
light: "#f0f0f4",
203+
dark: "var(--color-gray-80)",
204+
default: "light-dark(#f0f0f4, var(--color-gray-80))",
205+
},
206+
platform: {
207+
light: "rgba(0,0,0,5%)",
208+
dark: "rgba(255,255,255,5%)",
209+
default: "light-dark(rgba(0,0,0,5%), rgba(255,255,255,5%))",
210+
},
211+
},
212+
name: "--table-row-background-color-alternate",
213+
},
194214
],
195215
"border-color": [
196216
{ value: { prefersContrast: "var(--text-color)" }, name: "--border-color" },
@@ -766,28 +786,6 @@ export const storybookTables = {
766786
{ value: "calc(6 * var(--space-xsmall))", name: "--space-xlarge" },
767787
{ value: "calc(8 * var(--space-xsmall))", name: "--space-xxlarge" },
768788
],
769-
"table-row": [
770-
{
771-
value: { default: "var(--background-color-canvas)" },
772-
name: "--table-row-background-color",
773-
},
774-
{
775-
value: {
776-
forcedColors: "var(--background-color-canvas)",
777-
brand: {
778-
light: "#f0f0f4",
779-
dark: "var(--color-gray-80)",
780-
default: "light-dark(#f0f0f4, var(--color-gray-80))",
781-
},
782-
platform: {
783-
light: "rgba(0,0,0,5%)",
784-
dark: "rgba(255,255,255,5%)",
785-
default: "light-dark(rgba(0,0,0,5%), rgba(255,255,255,5%))",
786-
},
787-
},
788-
name: "--table-row-background-color-alternate",
789-
},
790-
],
791789
};
792790

793791
export const variableLookupTable = {

toolkit/themes/shared/design-system/tokens-table.stories.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ const THEMED_TABLES = [
5252
"outline",
5353
"icon-color",
5454
"link",
55-
"table-row",
5655
];
5756

5857
/**
@@ -391,7 +390,6 @@ class TokensTable extends LitElement {
391390
switch (category) {
392391
case "attention-dot":
393392
case "color":
394-
case "table-row":
395393
return "background-color";
396394
case "text-color":
397395
return "color";

0 commit comments

Comments
 (0)