Skip to content

Commit ecda33e

Browse files
committed
Update accessibility tests
1 parent 3864d59 commit ecda33e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/stacks-classic/lib/components/button/button.a11y.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ describe("button", () => {
1414
/s-btn-(light|dark).*?badge/,
1515
// matches tests with a badge in highcontrast-light modes, excluding filled, danger, github, facebook, sm, or xs
1616
/s-btn-highcontrast-light-(?!.*(filled|danger|github|facebook|sm|xs)).*?badge/,
17-
// matches tests with a badge in highcontrast-light modes, are muted or featured and/or outlined, and are sm or xs
18-
/s-btn-highcontrast-light-(?:muted-|featured-)?(?:outlined-)?(?:sm|xs).*?badge/,
17+
// matches tests with a badge in highcontrast-light modes, are tonal or featured, and are sm or xs
18+
/s-btn-highcontrast-light-(?:tonal-|featured-)?(?:sm|xs).*?badge/,
1919
],
2020
});
2121
});

packages/stacks-classic/lib/components/button/button.test.setup.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ const getChild = (child?: string): string => {
1616
// TODO test disabled states, interaction pseudo-classes
1717
const testArgs: TestVariationArgs = {
1818
baseClass: "s-btn",
19-
variants: ["danger", "featured", "muted"],
19+
variants: ["danger", "featured", "tonal"],
2020
modifiers: {
21-
primary: ["filled", "outlined"],
21+
primary: ["filled"],
2222
secondary: [...["xs", "sm", "md"], ...["dropdown", "icon"]],
2323
global: ["is-loading"],
2424
standalone: [...["link", "unset"], ...["facebook", "github", "google"]],

0 commit comments

Comments
 (0)