Skip to content

Commit f1c8838

Browse files
committed
chore: merge remote-tracking branch 'origin' into spectrum-two
2 parents 924fc7f + 58ed89e commit f1c8838

File tree

34 files changed

+289
-193
lines changed

34 files changed

+289
-193
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
dist
2-
!dist/metadata.json
1+
# Ignore dist directories except metadata.json
2+
**/dist/*
3+
!components/*/dist/metadata.json
34
!tokens/dist/json/*
45
!ui-icons/dist
56

.storybook/decorators/context.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const withContextWrapper = makeDecorator({
5454
// Check if the container is a testing wrapper to prevent applying colors around the testing grid
5555
const isTestingWrapper = isTesting ? container.matches("body:has([data-testing-preview]),[data-testing-preview]") : false;
5656
// Check if the container has a static color element
57-
let hasStaticElement = container.matches(`:has([data-html-preview])`) ? container.matches(`:has([data-html-preview] .${rootClass}--staticWhite, [data-html-preview] .${rootClass}--staticBlack)`) : container.matches(`:has(.${rootClass}--staticWhite, .${rootClass}--staticBlack)`);
57+
let hasStaticElement = container.matches(":has([data-html-preview])") ? container.matches(`:has([data-html-preview] .${rootClass}--staticWhite, [data-html-preview] .${rootClass}--staticBlack)`) : container.matches(`:has(.${rootClass}--staticWhite, .${rootClass}--staticBlack)`);
5858

5959
// Reset the context to the original values
6060
color = original.color;
@@ -97,7 +97,8 @@ export const withContextWrapper = makeDecorator({
9797
if (hasStaticElement && staticKey && staticColorSettings[staticKey]) {
9898
container.style.background = staticColorSettings[staticKey].background;
9999
}
100-
} else {
100+
}
101+
else {
101102
// Testing background is stark white to highlight the gray-ish background color on light theme
102103
container.style.background = "Canvas";
103104
}

.storybook/decorators/helpers.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { global } from '@storybook/global';
1+
import { global } from "@storybook/global";
22

33
/**
44
* @description Fetches the style container for the given ID or creates a new one
@@ -37,8 +37,8 @@ export function toggleStyles(container, id, styles, add = true, context = undefi
3737
export function fetchStyleContainer(id, container) {
3838
if (!id) return;
3939

40-
const { document } = global;
41-
if (!container) container = document.body;
40+
const { document } = global;
41+
if (!container) container = document.body;
4242

4343
let styleContainer = container.querySelector(`#${id}`);
4444
if (styleContainer) return styleContainer;

.storybook/decorators/icon-sprites.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,23 @@ export const withIconSpriteSheet = makeDecorator({
1111
parameterName: "spritesheet",
1212
wrapper: (StoryFn, context) => {
1313
const {
14-
loaded = {},
14+
loaded = {},
1515
} = context;
1616

1717
useEffect(() => {
18-
// Inject the sprite sheets into the document
19-
let sprite = document.getElementById("spritesheets");
20-
if (!sprite) {
21-
sprite = document.createElement("div");
22-
sprite.id = "spritesheets";
23-
sprite.innerHTML = workflowSprite + uiSprite;
24-
document.body.appendChild(sprite);
25-
}
26-
else {
27-
sprite.innerHTML = workflowSprite + uiSprite;
28-
}
18+
// Inject the sprite sheets into the document
19+
let sprite = document.getElementById("spritesheets");
20+
if (!sprite) {
21+
sprite = document.createElement("div");
22+
sprite.id = "spritesheets";
23+
sprite.innerHTML = workflowSprite + uiSprite;
24+
document.body.appendChild(sprite);
25+
}
26+
else {
27+
sprite.innerHTML = workflowSprite + uiSprite;
28+
}
2929
}, []);
3030

31-
return StoryFn(context);
31+
return StoryFn(context);
3232
},
3333
});

.storybook/decorators/language.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ export const withLanguageWrapper = makeDecorator({
5959

6060
},
6161
});
62-
} catch (e) {/* empty */}
62+
}
63+
catch (e) {/* empty */}
6364
}, [lang, currentKitId, window]);
6465

6566
return StoryFn(context);

.storybook/decorators/testing-preview.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,16 @@ export const withTestingPreviewWrapper = makeDecorator({
2828
// If isChromatic() is true, we should update the global value to always show the testing grid
2929
if (typeof isChromatic === "function" && isChromatic() === true) {
3030
context.parameters.showTestingGrid = true;
31-
} else if (viewMode === "docs") {
31+
}
32+
else if (viewMode === "docs") {
3233
// If we're in the docs view, we should disable the testing grid
3334
context.parameters.showTestingGrid = false;
34-
} else if (typeof showTestingGrid === "undefined") {
35+
}
36+
else if (typeof showTestingGrid === "undefined") {
3537
// If the global value is undefined, we should set it to the testing preview value
3638
context.parameters.showTestingGrid = testingPreview;
37-
} else if (showTestingGrid !== testingPreview) {
39+
}
40+
else if (showTestingGrid !== testingPreview) {
3841
context.parameters.showTestingGrid = testingPreview;
3942
}
4043

.storybook/decorators/utilities.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const Heading = ({
2424
const headingStyles = {
2525
"display": "block",
2626
"color": "inherit",
27-
"font-family": 'adobe-clean, "adobe clean", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif',
27+
"font-family": "adobe-clean, \"adobe clean\", \"Source Sans Pro\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Ubuntu, \"Trebuchet MS\", \"Lucida Grande\", sans-serif",
2828
"font-size": "11px",
2929
"line-height": "1.3",
3030
"font-weight": "700",
@@ -215,7 +215,7 @@ export const States = ({
215215

216216
// If the container test heading is in the ignore list, skip rendering this state
217217
if (ignore.length && ignore.includes(containerHeading)) {
218-
return nothing
218+
return nothing;
219219
}
220220

221221
context = {

.storybook/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import fs from "fs";
22
import path from "path";
3-
import remarkGfm from 'remark-gfm';
3+
import remarkGfm from "remark-gfm";
44

55
// Get a list of all the folders in the components directory
66
const componentDir = path.resolve(__dirname, "../components");
@@ -128,7 +128,7 @@ export default {
128128
},
129129
framework: "@storybook/web-components-vite",
130130
typescript: {
131-
reactDocgen: 'react-docgen',
131+
reactDocgen: "react-docgen",
132132
// Not using typescript so disable the check
133133
check: false,
134134
},

.storybook/project.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"outputs": ["{workspaceRoot}/dist"]
2828
}
2929
},
30-
"dependsOn": ["clean", "^build", { "target": "report", "tag": "component" }],
30+
"dependsOn": ["clean", "^build", { "tag": "component", "target": "report" }],
3131
"executor": "nx:run-commands",
3232
"inputs": ["tools", { "externalDependencies": ["storybook"] }],
3333
"options": {
@@ -85,7 +85,7 @@
8585
},
8686
"start": {
8787
"cache": true,
88-
"dependsOn": [{ "target": "report", "projects": "tag:component" }, "^build"],
88+
"dependsOn": [{ "projects": "tag:component", "target": "report" }, "^build"],
8989
"executor": "nx:run-commands",
9090
"inputs": [
9191
"tools",

components/button/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change log
22

3+
## 14.1.2
4+
5+
### Patch Changes
6+
7+
- [#3600](https://github.com/adobe/spectrum-css/pull/3600) [`bb845cb`](https://github.com/adobe/spectrum-css/commit/bb845cb2477d0c218a9675169f157b047c028222) Thanks [@rise-erpelding](https://github.com/rise-erpelding)! - Adjust border colors for static black and static white outline buttons, primary variant to match S2 spec.
8+
39
All notable changes to this project will be documented in this file.
410
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
511

0 commit comments

Comments
 (0)