Skip to content

Commit b009844

Browse files
jawinncastastrophe
authored andcommitted
feat: add example gradients for static black and white (#2637)
* feat: add example gradients for static black and white Add new gradient backgrounds, displayed for static black and static white variants. These are used for examples only. This adds CSS custom properties available globally within Storybook and sets them on the existing decorator. * docs(fieldlabel): support static colors decorator in storybook Change Field label stories that show static black and static white, so they work with the recently added decorator that changes the main Storybook background. * docs(button): adjust static colors template Adjust static colors template to better handle the static color decorator and gradients. * chore(fieldlabel): apply eslint indentation changes to stories
1 parent a1571d8 commit b009844

File tree

86 files changed

+177
-167
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+177
-167
lines changed

.storybook/decorators/context.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ export const withContextWrapper = makeDecorator({
3131

3232
const staticColorSettings = {
3333
"black": {
34-
background: "var(--spectrum-docs-static-black-background-color)",
34+
background: "var(--spectrum-examples-gradient-static-black)",
3535
color: "light"
3636
},
3737
"white": {
38-
background: "var(--spectrum-docs-static-white-background-color)",
38+
background: "var(--spectrum-examples-gradient-static-white)",
3939
color: "dark"
4040
},
4141
};

components/accordion/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
},
3939
"devDependencies": {
4040
"@spectrum-css/icon": "9.0.1",
41-
"@spectrum-css/tokens": "14.0.0-next.3"
41+
"@spectrum-css/tokens": "14.0.0-next.4"
4242
},
4343
"keywords": [
4444
"design-system",

components/actionbar/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"@spectrum-css/closebutton": "5.0.0-next.1",
5454
"@spectrum-css/fieldlabel": "8.0.0-next.1",
5555
"@spectrum-css/popover": "8.0.1",
56-
"@spectrum-css/tokens": "14.0.0-next.3"
56+
"@spectrum-css/tokens": "14.0.0-next.4"
5757
},
5858
"keywords": [
5959
"design-system",

components/actionbutton/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"devDependencies": {
4040
"@spectrum-css/commons": "9.1.4-next.0",
4141
"@spectrum-css/icon": "9.0.1",
42-
"@spectrum-css/tokens": "14.0.0-next.3"
42+
"@spectrum-css/tokens": "14.0.0-next.4"
4343
},
4444
"keywords": [
4545
"design-system",

components/actiongroup/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
},
3939
"devDependencies": {
4040
"@spectrum-css/actionbutton": "7.0.1",
41-
"@spectrum-css/tokens": "14.0.0-next.3"
41+
"@spectrum-css/tokens": "14.0.0-next.4"
4242
},
4343
"keywords": [
4444
"design-system",

components/actionmenu/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@spectrum-css/icon": "9.0.1",
3737
"@spectrum-css/menu": "9.0.1",
3838
"@spectrum-css/popover": "8.0.1",
39-
"@spectrum-css/tokens": "14.0.0-next.3"
39+
"@spectrum-css/tokens": "14.0.0-next.4"
4040
},
4141
"keywords": [
4242
"design-system",

components/alertbanner/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"@spectrum-css/closebutton": "5.0.0-next.1",
5454
"@spectrum-css/divider": "5.0.1",
5555
"@spectrum-css/icon": "9.0.1",
56-
"@spectrum-css/tokens": "14.0.0-next.3"
56+
"@spectrum-css/tokens": "14.0.0-next.4"
5757
},
5858
"keywords": [
5959
"design-system",

components/alertdialog/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"@spectrum-css/divider": "5.0.1",
5858
"@spectrum-css/icon": "9.0.1",
5959
"@spectrum-css/modal": "7.0.1",
60-
"@spectrum-css/tokens": "14.0.0-next.3",
60+
"@spectrum-css/tokens": "14.0.0-next.4",
6161
"@spectrum-css/underlay": "6.0.1"
6262
},
6363
"keywords": [

components/asset/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
}
3434
},
3535
"devDependencies": {
36-
"@spectrum-css/tokens": "14.0.0-next.3"
36+
"@spectrum-css/tokens": "14.0.0-next.4"
3737
},
3838
"keywords": [
3939
"design-system",

components/assetcard/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
},
3939
"devDependencies": {
4040
"@spectrum-css/checkbox": "10.0.1",
41-
"@spectrum-css/tokens": "14.0.0-next.3"
41+
"@spectrum-css/tokens": "14.0.0-next.4"
4242
},
4343
"keywords": [
4444
"design-system",

0 commit comments

Comments
 (0)