diff --git a/.changeset/lovely-shirts-hope.md b/.changeset/lovely-shirts-hope.md deleted file mode 100644 index d628f02357e..00000000000 --- a/.changeset/lovely-shirts-hope.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': minor ---- - -TreeView: Adds indication of no nodes in a tree item, allows for `aria-expanded even if the item is empty. diff --git a/.changeset/odd-singers-hammer.md b/.changeset/odd-singers-hammer.md new file mode 100644 index 00000000000..487fa8e0cdb --- /dev/null +++ b/.changeset/odd-singers-hammer.md @@ -0,0 +1,5 @@ +--- +"@primer/react": patch +--- + +Update Blankslate description text to always be centered diff --git a/.changeset/shiny-chefs-matter.md b/.changeset/shiny-chefs-matter.md deleted file mode 100644 index dc0ccd0325b..00000000000 --- a/.changeset/shiny-chefs-matter.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": minor ---- - -Update `SubNav` component to use CSS modules behind the feature flag primer_react_css_modules_team diff --git a/.changeset/sixty-onions-share.md b/.changeset/sixty-onions-share.md new file mode 100644 index 00000000000..10c54dc457a --- /dev/null +++ b/.changeset/sixty-onions-share.md @@ -0,0 +1,5 @@ +--- +'@primer/react': patch +--- + +fix: hover background in ActionList.Item diff --git a/.changeset/tender-dodos-walk.md b/.changeset/tender-dodos-walk.md new file mode 100644 index 00000000000..3ba0bcc752b --- /dev/null +++ b/.changeset/tender-dodos-walk.md @@ -0,0 +1,5 @@ +--- +"@primer/react": patch +--- + +fix(Treevieew):do not add aria-describedby attribute when empty leading/trailing visual diff --git a/.changeset/thirty-worms-accept.md b/.changeset/thirty-worms-accept.md new file mode 100644 index 00000000000..ecb267ba39f --- /dev/null +++ b/.changeset/thirty-worms-accept.md @@ -0,0 +1,5 @@ +--- +"@primer/react": patch +--- + +Move ButtonGroup css module feature flag to staff diff --git a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-dark-colorblind-linux.png b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-dark-colorblind-linux.png index 4b1e677fe72..1905f3f847a 100644 Binary files a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-dark-colorblind-linux.png and b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-dark-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-dark-dimmed-linux.png b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-dark-dimmed-linux.png index a9efebdc3e3..967f7cbcfb5 100644 Binary files a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-dark-dimmed-linux.png and b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-dark-dimmed-linux.png differ diff --git a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-dark-high-contrast-linux.png b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-dark-high-contrast-linux.png index cd1cecebfa0..2c2ce98505b 100644 Binary files a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-dark-high-contrast-linux.png and b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-dark-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-dark-linux.png b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-dark-linux.png index b07f9bd9b81..a88f2098ed4 100644 Binary files a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-dark-linux.png and b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-dark-linux.png differ diff --git a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-dark-tritanopia-linux.png b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-dark-tritanopia-linux.png index 4b1e677fe72..1905f3f847a 100644 Binary files a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-dark-tritanopia-linux.png and b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-dark-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-light-colorblind-linux.png b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-light-colorblind-linux.png index 34c94edc143..f1c994fa927 100644 Binary files a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-light-colorblind-linux.png and b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-light-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-light-high-contrast-linux.png b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-light-high-contrast-linux.png index 04228fc3f0f..7583d11bf8b 100644 Binary files a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-light-high-contrast-linux.png and b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-light-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-light-linux.png b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-light-linux.png index e7b61f00caa..df3ba67a85c 100644 Binary files a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-light-linux.png and b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-light-linux.png differ diff --git a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-light-tritanopia-linux.png b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-light-tritanopia-linux.png index 34c94edc143..f1c994fa927 100644 Binary files a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-light-tritanopia-linux.png and b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-light-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-primer-breakpoint-sm-linux.png b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-primer-breakpoint-sm-linux.png index 545946dac1e..5d91cc5e880 100644 Binary files a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-primer-breakpoint-sm-linux.png and b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-primer-breakpoint-sm-linux.png differ diff --git a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-primer-breakpoint-xs-linux.png b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-primer-breakpoint-xs-linux.png index 50d632d028a..bfff59ee3ff 100644 Binary files a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-primer-breakpoint-xs-linux.png and b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Default-primer-breakpoint-xs-linux.png differ diff --git a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-dark-colorblind-linux.png b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-dark-colorblind-linux.png index 3c595b1a3ed..1a7786b2ed2 100644 Binary files a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-dark-colorblind-linux.png and b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-dark-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-dark-dimmed-linux.png b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-dark-dimmed-linux.png index 4c4ff17f895..34735079b5a 100644 Binary files a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-dark-dimmed-linux.png and b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-dark-dimmed-linux.png differ diff --git a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-dark-high-contrast-linux.png b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-dark-high-contrast-linux.png index 245b66011ef..862b5aa944b 100644 Binary files a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-dark-high-contrast-linux.png and b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-dark-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-dark-linux.png b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-dark-linux.png index 3c595b1a3ed..1a7786b2ed2 100644 Binary files a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-dark-linux.png and b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-dark-linux.png differ diff --git a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-dark-tritanopia-linux.png b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-dark-tritanopia-linux.png index 3c595b1a3ed..1a7786b2ed2 100644 Binary files a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-dark-tritanopia-linux.png and b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-dark-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-light-colorblind-linux.png b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-light-colorblind-linux.png index 905d4138bcf..e5720bd3e36 100644 Binary files a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-light-colorblind-linux.png and b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-light-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-light-high-contrast-linux.png b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-light-high-contrast-linux.png index 2645dbea50a..0116d65f7c4 100644 Binary files a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-light-high-contrast-linux.png and b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-light-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-light-linux.png b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-light-linux.png index 905d4138bcf..e5720bd3e36 100644 Binary files a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-light-linux.png and b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-light-linux.png differ diff --git a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-light-tritanopia-linux.png b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-light-tritanopia-linux.png index 905d4138bcf..e5720bd3e36 100644 Binary files a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-light-tritanopia-linux.png and b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-light-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-primer-breakpoint-sm-linux.png b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-primer-breakpoint-sm-linux.png index 94b2c667b81..2c969788c4b 100644 Binary files a/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-primer-breakpoint-sm-linux.png and b/.playwright/snapshots/components/Blankslate.test.ts-snapshots/Blankslate-Narrow-primer-breakpoint-sm-linux.png differ diff --git a/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithCSS-dark-colorblind-linux.png b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithCSS-dark-colorblind-linux.png new file mode 100644 index 00000000000..f8d0964c5d7 Binary files /dev/null and b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithCSS-dark-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithCSS-dark-dimmed-linux.png b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithCSS-dark-dimmed-linux.png new file mode 100644 index 00000000000..37805b608f0 Binary files /dev/null and b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithCSS-dark-dimmed-linux.png differ diff --git a/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithCSS-dark-high-contrast-linux.png b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithCSS-dark-high-contrast-linux.png new file mode 100644 index 00000000000..097f4bbc611 Binary files /dev/null and b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithCSS-dark-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithCSS-dark-linux.png b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithCSS-dark-linux.png new file mode 100644 index 00000000000..f8d0964c5d7 Binary files /dev/null and b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithCSS-dark-linux.png differ diff --git a/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithCSS-dark-tritanopia-linux.png b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithCSS-dark-tritanopia-linux.png new file mode 100644 index 00000000000..f8d0964c5d7 Binary files /dev/null and b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithCSS-dark-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithCSS-light-colorblind-linux.png b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithCSS-light-colorblind-linux.png new file mode 100644 index 00000000000..f42efd1779a Binary files /dev/null and b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithCSS-light-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithCSS-light-high-contrast-linux.png b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithCSS-light-high-contrast-linux.png new file mode 100644 index 00000000000..f132bf21c32 Binary files /dev/null and b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithCSS-light-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithCSS-light-linux.png b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithCSS-light-linux.png new file mode 100644 index 00000000000..f42efd1779a Binary files /dev/null and b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithCSS-light-linux.png differ diff --git a/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithCSS-light-tritanopia-linux.png b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithCSS-light-tritanopia-linux.png new file mode 100644 index 00000000000..f42efd1779a Binary files /dev/null and b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithCSS-light-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSx-dark-colorblind-linux.png b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSx-dark-colorblind-linux.png new file mode 100644 index 00000000000..df3df41d174 Binary files /dev/null and b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSx-dark-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSx-dark-dimmed-linux.png b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSx-dark-dimmed-linux.png new file mode 100644 index 00000000000..7c5497e2b96 Binary files /dev/null and b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSx-dark-dimmed-linux.png differ diff --git a/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSx-dark-high-contrast-linux.png b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSx-dark-high-contrast-linux.png new file mode 100644 index 00000000000..36a573d7a12 Binary files /dev/null and b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSx-dark-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSx-dark-linux.png b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSx-dark-linux.png new file mode 100644 index 00000000000..df3df41d174 Binary files /dev/null and b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSx-dark-linux.png differ diff --git a/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSx-dark-tritanopia-linux.png b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSx-dark-tritanopia-linux.png new file mode 100644 index 00000000000..df3df41d174 Binary files /dev/null and b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSx-dark-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSx-light-colorblind-linux.png b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSx-light-colorblind-linux.png new file mode 100644 index 00000000000..785dcf53bb9 Binary files /dev/null and b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSx-light-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSx-light-high-contrast-linux.png b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSx-light-high-contrast-linux.png new file mode 100644 index 00000000000..adef3e640fb Binary files /dev/null and b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSx-light-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSx-light-linux.png b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSx-light-linux.png new file mode 100644 index 00000000000..785dcf53bb9 Binary files /dev/null and b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSx-light-linux.png differ diff --git a/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSx-light-tritanopia-linux.png b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSx-light-tritanopia-linux.png new file mode 100644 index 00000000000..785dcf53bb9 Binary files /dev/null and b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSx-light-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSxAndCSS-dark-colorblind-linux.png b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSxAndCSS-dark-colorblind-linux.png new file mode 100644 index 00000000000..df3df41d174 Binary files /dev/null and b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSxAndCSS-dark-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSxAndCSS-dark-dimmed-linux.png b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSxAndCSS-dark-dimmed-linux.png new file mode 100644 index 00000000000..7c5497e2b96 Binary files /dev/null and b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSxAndCSS-dark-dimmed-linux.png differ diff --git a/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSxAndCSS-dark-high-contrast-linux.png b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSxAndCSS-dark-high-contrast-linux.png new file mode 100644 index 00000000000..36a573d7a12 Binary files /dev/null and b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSxAndCSS-dark-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSxAndCSS-dark-linux.png b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSxAndCSS-dark-linux.png new file mode 100644 index 00000000000..df3df41d174 Binary files /dev/null and b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSxAndCSS-dark-linux.png differ diff --git a/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSxAndCSS-dark-tritanopia-linux.png b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSxAndCSS-dark-tritanopia-linux.png new file mode 100644 index 00000000000..df3df41d174 Binary files /dev/null and b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSxAndCSS-dark-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSxAndCSS-light-colorblind-linux.png b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSxAndCSS-light-colorblind-linux.png new file mode 100644 index 00000000000..785dcf53bb9 Binary files /dev/null and b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSxAndCSS-light-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSxAndCSS-light-high-contrast-linux.png b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSxAndCSS-light-high-contrast-linux.png new file mode 100644 index 00000000000..adef3e640fb Binary files /dev/null and b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSxAndCSS-light-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSxAndCSS-light-linux.png b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSxAndCSS-light-linux.png new file mode 100644 index 00000000000..785dcf53bb9 Binary files /dev/null and b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSxAndCSS-light-linux.png differ diff --git a/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSxAndCSS-light-tritanopia-linux.png b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSxAndCSS-light-tritanopia-linux.png new file mode 100644 index 00000000000..785dcf53bb9 Binary files /dev/null and b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Dev-WithSxAndCSS-light-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-IssueLabelToken-dark-colorblind-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-IssueLabelToken-dark-colorblind-linux.png new file mode 100644 index 00000000000..695bbdbeaf3 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-IssueLabelToken-dark-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-IssueLabelToken-dark-dimmed-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-IssueLabelToken-dark-dimmed-linux.png new file mode 100644 index 00000000000..44ba463e4b2 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-IssueLabelToken-dark-dimmed-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-IssueLabelToken-dark-high-contrast-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-IssueLabelToken-dark-high-contrast-linux.png new file mode 100644 index 00000000000..814df4eb4f6 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-IssueLabelToken-dark-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-IssueLabelToken-dark-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-IssueLabelToken-dark-linux.png new file mode 100644 index 00000000000..695bbdbeaf3 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-IssueLabelToken-dark-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-IssueLabelToken-dark-tritanopia-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-IssueLabelToken-dark-tritanopia-linux.png new file mode 100644 index 00000000000..695bbdbeaf3 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-IssueLabelToken-dark-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-IssueLabelToken-light-colorblind-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-IssueLabelToken-light-colorblind-linux.png new file mode 100644 index 00000000000..d5029e854c8 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-IssueLabelToken-light-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-IssueLabelToken-light-high-contrast-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-IssueLabelToken-light-high-contrast-linux.png new file mode 100644 index 00000000000..d5029e854c8 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-IssueLabelToken-light-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-IssueLabelToken-light-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-IssueLabelToken-light-linux.png new file mode 100644 index 00000000000..d5029e854c8 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-IssueLabelToken-light-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-IssueLabelToken-light-tritanopia-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-IssueLabelToken-light-tritanopia-linux.png new file mode 100644 index 00000000000..d5029e854c8 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-IssueLabelToken-light-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-dark-colorblind-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-dark-colorblind-linux.png new file mode 100644 index 00000000000..a2b51fd1126 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-dark-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-dark-dimmed-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-dark-dimmed-linux.png new file mode 100644 index 00000000000..e18e7290dd0 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-dark-dimmed-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-dark-high-contrast-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-dark-high-contrast-linux.png new file mode 100644 index 00000000000..df78189e886 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-dark-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-dark-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-dark-linux.png new file mode 100644 index 00000000000..a2b51fd1126 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-dark-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-dark-tritanopia-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-dark-tritanopia-linux.png new file mode 100644 index 00000000000..a2b51fd1126 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-dark-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-light-colorblind-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-light-colorblind-linux.png new file mode 100644 index 00000000000..00d0c535592 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-light-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-light-high-contrast-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-light-high-contrast-linux.png new file mode 100644 index 00000000000..58d7270a5cc Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-light-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-light-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-light-linux.png new file mode 100644 index 00000000000..00d0c535592 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-light-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-light-tritanopia-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-light-tritanopia-linux.png new file mode 100644 index 00000000000..00d0c535592 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Default-light-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Dev-Default-dark-colorblind-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Dev-Default-dark-colorblind-linux.png new file mode 100644 index 00000000000..52764a8380b Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Dev-Default-dark-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Dev-Default-dark-dimmed-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Dev-Default-dark-dimmed-linux.png new file mode 100644 index 00000000000..1594e15dadc Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Dev-Default-dark-dimmed-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Dev-Default-dark-high-contrast-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Dev-Default-dark-high-contrast-linux.png new file mode 100644 index 00000000000..7fd6ca68bfe Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Dev-Default-dark-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Dev-Default-dark-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Dev-Default-dark-linux.png new file mode 100644 index 00000000000..52764a8380b Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Dev-Default-dark-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Dev-Default-dark-tritanopia-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Dev-Default-dark-tritanopia-linux.png new file mode 100644 index 00000000000..52764a8380b Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Dev-Default-dark-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Dev-Default-light-colorblind-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Dev-Default-light-colorblind-linux.png new file mode 100644 index 00000000000..1c1ed3389bf Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Dev-Default-light-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Dev-Default-light-high-contrast-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Dev-Default-light-high-contrast-linux.png new file mode 100644 index 00000000000..ec6b8403650 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Dev-Default-light-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Dev-Default-light-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Dev-Default-light-linux.png new file mode 100644 index 00000000000..1c1ed3389bf Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Dev-Default-light-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Dev-Default-light-tritanopia-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Dev-Default-light-tritanopia-linux.png new file mode 100644 index 00000000000..1c1ed3389bf Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Dev-Default-light-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-IssueLabelToken-with-onRemove-fn-dark-colorblind-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-IssueLabelToken-with-onRemove-fn-dark-colorblind-linux.png new file mode 100644 index 00000000000..740e408142f Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-IssueLabelToken-with-onRemove-fn-dark-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-IssueLabelToken-with-onRemove-fn-dark-dimmed-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-IssueLabelToken-with-onRemove-fn-dark-dimmed-linux.png new file mode 100644 index 00000000000..7b774f027b5 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-IssueLabelToken-with-onRemove-fn-dark-dimmed-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-IssueLabelToken-with-onRemove-fn-dark-high-contrast-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-IssueLabelToken-with-onRemove-fn-dark-high-contrast-linux.png new file mode 100644 index 00000000000..e39b57f87ed Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-IssueLabelToken-with-onRemove-fn-dark-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-IssueLabelToken-with-onRemove-fn-dark-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-IssueLabelToken-with-onRemove-fn-dark-linux.png new file mode 100644 index 00000000000..740e408142f Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-IssueLabelToken-with-onRemove-fn-dark-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-IssueLabelToken-with-onRemove-fn-dark-tritanopia-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-IssueLabelToken-with-onRemove-fn-dark-tritanopia-linux.png new file mode 100644 index 00000000000..740e408142f Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-IssueLabelToken-with-onRemove-fn-dark-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-IssueLabelToken-with-onRemove-fn-light-colorblind-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-IssueLabelToken-with-onRemove-fn-light-colorblind-linux.png new file mode 100644 index 00000000000..39aa7596268 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-IssueLabelToken-with-onRemove-fn-light-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-IssueLabelToken-with-onRemove-fn-light-high-contrast-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-IssueLabelToken-with-onRemove-fn-light-high-contrast-linux.png new file mode 100644 index 00000000000..39aa7596268 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-IssueLabelToken-with-onRemove-fn-light-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-IssueLabelToken-with-onRemove-fn-light-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-IssueLabelToken-with-onRemove-fn-light-linux.png new file mode 100644 index 00000000000..39aa7596268 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-IssueLabelToken-with-onRemove-fn-light-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-IssueLabelToken-with-onRemove-fn-light-tritanopia-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-IssueLabelToken-with-onRemove-fn-light-tritanopia-linux.png new file mode 100644 index 00000000000..39aa7596268 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-IssueLabelToken-with-onRemove-fn-light-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Large-Token-dark-colorblind-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Large-Token-dark-colorblind-linux.png new file mode 100644 index 00000000000..95781f8c689 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Large-Token-dark-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Large-Token-dark-dimmed-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Large-Token-dark-dimmed-linux.png new file mode 100644 index 00000000000..e4d659f1fa5 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Large-Token-dark-dimmed-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Large-Token-dark-high-contrast-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Large-Token-dark-high-contrast-linux.png new file mode 100644 index 00000000000..7e872dbdbe7 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Large-Token-dark-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Large-Token-dark-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Large-Token-dark-linux.png new file mode 100644 index 00000000000..95781f8c689 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Large-Token-dark-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Large-Token-dark-tritanopia-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Large-Token-dark-tritanopia-linux.png new file mode 100644 index 00000000000..95781f8c689 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Large-Token-dark-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Large-Token-light-colorblind-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Large-Token-light-colorblind-linux.png new file mode 100644 index 00000000000..a25ae1f9d19 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Large-Token-light-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Large-Token-light-high-contrast-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Large-Token-light-high-contrast-linux.png new file mode 100644 index 00000000000..78547b74fca Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Large-Token-light-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Large-Token-light-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Large-Token-light-linux.png new file mode 100644 index 00000000000..a25ae1f9d19 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Large-Token-light-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Large-Token-light-tritanopia-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Large-Token-light-tritanopia-linux.png new file mode 100644 index 00000000000..a25ae1f9d19 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Large-Token-light-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Small-Token-dark-colorblind-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Small-Token-dark-colorblind-linux.png new file mode 100644 index 00000000000..66df456b1ed Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Small-Token-dark-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Small-Token-dark-dimmed-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Small-Token-dark-dimmed-linux.png new file mode 100644 index 00000000000..ceabd622946 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Small-Token-dark-dimmed-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Small-Token-dark-high-contrast-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Small-Token-dark-high-contrast-linux.png new file mode 100644 index 00000000000..81db80d9081 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Small-Token-dark-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Small-Token-dark-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Small-Token-dark-linux.png new file mode 100644 index 00000000000..66df456b1ed Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Small-Token-dark-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Small-Token-dark-tritanopia-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Small-Token-dark-tritanopia-linux.png new file mode 100644 index 00000000000..66df456b1ed Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Small-Token-dark-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Small-Token-light-colorblind-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Small-Token-light-colorblind-linux.png new file mode 100644 index 00000000000..3e6c4165679 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Small-Token-light-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Small-Token-light-high-contrast-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Small-Token-light-high-contrast-linux.png new file mode 100644 index 00000000000..fb1518972e9 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Small-Token-light-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Small-Token-light-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Small-Token-light-linux.png new file mode 100644 index 00000000000..3e6c4165679 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Small-Token-light-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Small-Token-light-tritanopia-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Small-Token-light-tritanopia-linux.png new file mode 100644 index 00000000000..3e6c4165679 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Small-Token-light-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-With-Leading-Visual-dark-colorblind-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-With-Leading-Visual-dark-colorblind-linux.png new file mode 100644 index 00000000000..f552fa7afbd Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-With-Leading-Visual-dark-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-With-Leading-Visual-dark-dimmed-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-With-Leading-Visual-dark-dimmed-linux.png new file mode 100644 index 00000000000..f4b2bab1d5b Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-With-Leading-Visual-dark-dimmed-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-With-Leading-Visual-dark-high-contrast-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-With-Leading-Visual-dark-high-contrast-linux.png new file mode 100644 index 00000000000..d2fe915c7cd Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-With-Leading-Visual-dark-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-With-Leading-Visual-dark-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-With-Leading-Visual-dark-linux.png new file mode 100644 index 00000000000..f552fa7afbd Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-With-Leading-Visual-dark-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-With-Leading-Visual-dark-tritanopia-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-With-Leading-Visual-dark-tritanopia-linux.png new file mode 100644 index 00000000000..f552fa7afbd Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-With-Leading-Visual-dark-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-With-Leading-Visual-light-colorblind-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-With-Leading-Visual-light-colorblind-linux.png new file mode 100644 index 00000000000..5334f7fe8cb Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-With-Leading-Visual-light-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-With-Leading-Visual-light-high-contrast-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-With-Leading-Visual-light-high-contrast-linux.png new file mode 100644 index 00000000000..599ae66bc10 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-With-Leading-Visual-light-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-With-Leading-Visual-light-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-With-Leading-Visual-light-linux.png new file mode 100644 index 00000000000..5334f7fe8cb Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-With-Leading-Visual-light-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-With-Leading-Visual-light-tritanopia-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-With-Leading-Visual-light-tritanopia-linux.png new file mode 100644 index 00000000000..5334f7fe8cb Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-With-Leading-Visual-light-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-with-onRemove-fn-dark-colorblind-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-with-onRemove-fn-dark-colorblind-linux.png new file mode 100644 index 00000000000..c88a804bf09 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-with-onRemove-fn-dark-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-with-onRemove-fn-dark-dimmed-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-with-onRemove-fn-dark-dimmed-linux.png new file mode 100644 index 00000000000..8da2f743db1 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-with-onRemove-fn-dark-dimmed-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-with-onRemove-fn-dark-high-contrast-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-with-onRemove-fn-dark-high-contrast-linux.png new file mode 100644 index 00000000000..bd9d23688e7 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-with-onRemove-fn-dark-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-with-onRemove-fn-dark-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-with-onRemove-fn-dark-linux.png new file mode 100644 index 00000000000..c88a804bf09 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-with-onRemove-fn-dark-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-with-onRemove-fn-dark-tritanopia-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-with-onRemove-fn-dark-tritanopia-linux.png new file mode 100644 index 00000000000..c88a804bf09 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-with-onRemove-fn-dark-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-with-onRemove-fn-light-colorblind-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-with-onRemove-fn-light-colorblind-linux.png new file mode 100644 index 00000000000..e7b0e02fc58 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-with-onRemove-fn-light-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-with-onRemove-fn-light-high-contrast-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-with-onRemove-fn-light-high-contrast-linux.png new file mode 100644 index 00000000000..8be4dd23191 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-with-onRemove-fn-light-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-with-onRemove-fn-light-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-with-onRemove-fn-light-linux.png new file mode 100644 index 00000000000..e7b0e02fc58 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-with-onRemove-fn-light-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-with-onRemove-fn-light-tritanopia-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-with-onRemove-fn-light-tritanopia-linux.png new file mode 100644 index 00000000000..e7b0e02fc58 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-Token-with-onRemove-fn-light-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-X-Large-Token-dark-colorblind-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-X-Large-Token-dark-colorblind-linux.png new file mode 100644 index 00000000000..95781f8c689 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-X-Large-Token-dark-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-X-Large-Token-dark-dimmed-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-X-Large-Token-dark-dimmed-linux.png new file mode 100644 index 00000000000..e4d659f1fa5 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-X-Large-Token-dark-dimmed-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-X-Large-Token-dark-high-contrast-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-X-Large-Token-dark-high-contrast-linux.png new file mode 100644 index 00000000000..7e872dbdbe7 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-X-Large-Token-dark-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-X-Large-Token-dark-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-X-Large-Token-dark-linux.png new file mode 100644 index 00000000000..95781f8c689 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-X-Large-Token-dark-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-X-Large-Token-dark-tritanopia-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-X-Large-Token-dark-tritanopia-linux.png new file mode 100644 index 00000000000..95781f8c689 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-X-Large-Token-dark-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-X-Large-Token-light-colorblind-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-X-Large-Token-light-colorblind-linux.png new file mode 100644 index 00000000000..a25ae1f9d19 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-X-Large-Token-light-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-X-Large-Token-light-high-contrast-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-X-Large-Token-light-high-contrast-linux.png new file mode 100644 index 00000000000..78547b74fca Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-X-Large-Token-light-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-X-Large-Token-light-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-X-Large-Token-light-linux.png new file mode 100644 index 00000000000..a25ae1f9d19 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-X-Large-Token-light-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-X-Large-Token-light-tritanopia-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-X-Large-Token-light-tritanopia-linux.png new file mode 100644 index 00000000000..a25ae1f9d19 Binary files /dev/null and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-X-Large-Token-light-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-dark-colorblind-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-dark-colorblind-linux.png index 8c73d42a57b..52764a8380b 100644 Binary files a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-dark-colorblind-linux.png and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-dark-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-dark-dimmed-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-dark-dimmed-linux.png index 927f2926d54..1594e15dadc 100644 Binary files a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-dark-dimmed-linux.png and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-dark-dimmed-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-dark-high-contrast-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-dark-high-contrast-linux.png index 10c579efc35..7fd6ca68bfe 100644 Binary files a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-dark-high-contrast-linux.png and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-dark-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-dark-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-dark-linux.png index 8c73d42a57b..52764a8380b 100644 Binary files a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-dark-linux.png and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-dark-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-dark-tritanopia-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-dark-tritanopia-linux.png index 8c73d42a57b..52764a8380b 100644 Binary files a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-dark-tritanopia-linux.png and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-dark-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-light-colorblind-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-light-colorblind-linux.png index a08d227f335..1c1ed3389bf 100644 Binary files a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-light-colorblind-linux.png and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-light-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-light-high-contrast-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-light-high-contrast-linux.png index 93b1aa311a5..ec6b8403650 100644 Binary files a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-light-high-contrast-linux.png and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-light-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-light-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-light-linux.png index a08d227f335..1c1ed3389bf 100644 Binary files a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-light-linux.png and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-light-linux.png differ diff --git a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-light-tritanopia-linux.png b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-light-tritanopia-linux.png index a08d227f335..1c1ed3389bf 100644 Binary files a/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-light-tritanopia-linux.png and b/.playwright/snapshots/components/Token.test.ts-snapshots/Token-Default-light-tritanopia-linux.png differ diff --git a/e2e/components/TextInput.test.ts b/e2e/components/TextInput.test.ts index dc1af6c6551..34ef7693a0e 100644 --- a/e2e/components/TextInput.test.ts +++ b/e2e/components/TextInput.test.ts @@ -338,4 +338,58 @@ test.describe('TextInput', () => { }) } }) + + test.describe('Dev: With Sx', () => { + for (const theme of themes) { + test.describe(theme, () => { + test('default @vrt', async ({page}) => { + await visit(page, { + id: 'components-textinput-dev--with-sx', + globals: { + colorScheme: theme, + }, + }) + + // Default state + expect(await page.screenshot()).toMatchSnapshot(`TextInput.Dev.WithSx.${theme}.png`) + }) + }) + } + }) + + test.describe('Dev: With CSS', () => { + for (const theme of themes) { + test.describe(theme, () => { + test('default @vrt', async ({page}) => { + await visit(page, { + id: 'components-textinput-dev--with-css', + globals: { + colorScheme: theme, + }, + }) + + // Default state + expect(await page.screenshot()).toMatchSnapshot(`TextInput.Dev.WithCSS.${theme}.png`) + }) + }) + } + }) + + test.describe('Dev: With Sx and CSS', () => { + for (const theme of themes) { + test.describe(theme, () => { + test('default @vrt', async ({page}) => { + await visit(page, { + id: 'components-textinput-dev--with-sx-and-css', + globals: { + colorScheme: theme, + }, + }) + + // Default state + expect(await page.screenshot()).toMatchSnapshot(`TextInput.Dev.WithSxAndCSS.${theme}.png`) + }) + }) + } + }) }) diff --git a/e2e/components/Token.test.ts b/e2e/components/Token.test.ts index 87f0d422e7d..9f482fe7f84 100644 --- a/e2e/components/Token.test.ts +++ b/e2e/components/Token.test.ts @@ -2,228 +2,73 @@ import {test, expect} from '@playwright/test' import {visit} from '../test-helpers/storybook' import {themes} from '../test-helpers/themes' -test.describe('Token', () => { - test.describe('Default', () => { - for (const theme of themes) { - test.describe(theme, () => { - test('default @vrt', async ({page}) => { - await visit(page, { - id: 'components-token--default', - globals: { - colorScheme: theme, - }, - }) - - // Default state - expect(await page.screenshot()).toMatchSnapshot(`Token.Default.${theme}.png`) - }) - - test('axe @aat', async ({page}) => { - await visit(page, { - id: 'components-token--default', - globals: { - colorScheme: theme, - }, - }) - await expect(page).toHaveNoViolations() - }) - }) - } - }) - - test.describe('Small Token', () => { - for (const theme of themes) { - test.describe(theme, () => { - test('default @vrt', async ({page}) => { - await visit(page, { - id: 'components-token-features--small-token', - globals: { - colorScheme: theme, - }, - }) - - // Default state - expect(await page.screenshot()).toMatchSnapshot(`Token.Small Token.${theme}.png`) - }) - - test('axe @aat', async ({page}) => { - await visit(page, { - id: 'components-token-features--small-token', - globals: { - colorScheme: theme, - }, - }) - await expect(page).toHaveNoViolations() - }) - }) - } - }) - - test.describe('Large Token', () => { - for (const theme of themes) { - test.describe(theme, () => { - test('default @vrt', async ({page}) => { - await visit(page, { - id: 'components-token-features--large-token', - globals: { - colorScheme: theme, - }, - }) - - // Default state - expect(await page.screenshot()).toMatchSnapshot(`Token.Large Token.${theme}.png`) - }) - - test('axe @aat', async ({page}) => { - await visit(page, { - id: 'components-token-features--large-token', - globals: { - colorScheme: theme, - }, - }) - await expect(page).toHaveNoViolations() - }) - }) - } - }) - - test.describe('Xlarge Token', () => { - for (const theme of themes) { - test.describe(theme, () => { - test('default @vrt', async ({page}) => { - await visit(page, { - id: 'components-token-features--x-large-token', - globals: { - colorScheme: theme, - }, - }) - - // Default state - expect(await page.screenshot()).toMatchSnapshot(`Token.Xlarge Token.${theme}.png`) - }) - - test('axe @aat', async ({page}) => { - await visit(page, { - id: 'components-token-features--x-large-token', - globals: { - colorScheme: theme, - }, - }) - await expect(page).toHaveNoViolations() - }) - }) - } - }) +const stories = [ + { + title: 'Default', + id: 'components-token--default', + }, + { + title: 'Dev Default', + id: 'components-token-dev--dev-default', + }, + { + title: 'Small Token', + id: 'components-token-features--small-token', + }, + { + title: 'Large Token', + id: 'components-token-features--large-token', + }, + { + title: 'X Large Token', + id: 'components-token-features--x-large-token', + }, + { + title: 'Token With Leading Visual', + id: 'components-token-features--token-with-leading-visual', + }, + { + title: 'Token with onRemove fn', + id: 'components-token-features--token-with-on-remove-fn', + }, + { + title: 'Default IssueLabelToken', + id: 'components-token-features--default-issue-label-token', + }, + { + title: 'IssueLabelToken with onRemove fn', + id: 'components-token-features--issue-label-token-with-on-remove-fn', + }, +] - test.describe('Token With Leading Visual', () => { - for (const theme of themes) { - test.describe(theme, () => { - test('default @vrt', async ({page}) => { - await visit(page, { - id: 'components-token-features--token-with-leading-visual', - globals: { - colorScheme: theme, - }, - }) - - // Default state - expect(await page.screenshot()).toMatchSnapshot(`Token.Token With Leading Visual.${theme}.png`) - }) - - test('axe @aat', async ({page}) => { - await visit(page, { - id: 'components-token-features--token-with-leading-visual', - globals: { - colorScheme: theme, - }, - }) - await expect(page).toHaveNoViolations() - }) - }) - } - }) - - test.describe('Token With On Remove Fn', () => { - for (const theme of themes) { - test.describe(theme, () => { - test('default @vrt', async ({page}) => { - await visit(page, { - id: 'components-token-features--token-with-on-remove-fn', - globals: { - colorScheme: theme, - }, - }) - - // Default state - expect(await page.screenshot()).toMatchSnapshot(`Token.Token With On Remove Fn.${theme}.png`) - }) - - test('axe @aat', async ({page}) => { - await visit(page, { - id: 'components-token-features--token-with-on-remove-fn', - globals: { - colorScheme: theme, - }, - }) - await expect(page).toHaveNoViolations() - }) - }) - } - }) - - test.describe('Default Issue Label Token', () => { - for (const theme of themes) { - test.describe(theme, () => { - test('default @vrt', async ({page}) => { - await visit(page, { - id: 'components-token-features--default-issue-label-token', - globals: { - colorScheme: theme, - }, - }) - - // Default state - expect(await page.screenshot()).toMatchSnapshot(`Token.Default Issue Label Token.${theme}.png`) - }) - - test('axe @aat', async ({page}) => { - await visit(page, { - id: 'components-token-features--default-issue-label-token', - globals: { - colorScheme: theme, - }, - }) - await expect(page).toHaveNoViolations() - }) - }) - } - }) - - test.describe('Issue Label Token With On Remove Fn', () => { - for (const theme of themes) { - test.describe(theme, () => { - test('default @vrt', async ({page}) => { - await visit(page, { - id: 'components-token-features--issue-label-token-with-on-remove-fn', - globals: { - colorScheme: theme, - }, - }) - - // Default state - expect(await page.screenshot()).toMatchSnapshot(`Token.Issue Label Token With On Remove Fn.${theme}.png`) - }) - - test('axe @aat', async ({page}) => { - await visit(page, { - id: 'components-token-features--issue-label-token-with-on-remove-fn', - globals: { - colorScheme: theme, - }, - }) - await expect(page).toHaveNoViolations() - }) - }) - } - }) +test.describe('Token', () => { + for (const story of stories) { + test.describe(story.title, () => { + for (const theme of themes) { + test.describe(theme, () => { + test('default @vrt', async ({page}) => { + await visit(page, { + id: story.id, + globals: { + colorScheme: theme, + }, + }) + + // Default state + expect(await page.screenshot()).toMatchSnapshot(`Token.Default.${story.title}.${theme}.png`) + }) + + test('axe @aat', async ({page}) => { + await visit(page, { + id: story.id, + globals: { + colorScheme: theme, + }, + }) + await expect(page).toHaveNoViolations() + }) + }) + } + }) + } }) diff --git a/examples/app-router/package.json b/examples/app-router/package.json index 25fe7dcc5c8..faa75d603b7 100644 --- a/examples/app-router/package.json +++ b/examples/app-router/package.json @@ -10,7 +10,7 @@ "type-check": "tsc --noEmit" }, "dependencies": { - "@primer/react": "37.1.0", + "@primer/react": "37.2.0", "next": "^14.2.10", "react": "^18.3.1", "react-dom": "^18.3.1", diff --git a/examples/codesandbox/package.json b/examples/codesandbox/package.json index 95f9c60febd..92be01382f1 100644 --- a/examples/codesandbox/package.json +++ b/examples/codesandbox/package.json @@ -20,7 +20,7 @@ "@typescript-eslint/eslint-plugin": "^7.11.0", "@typescript-eslint/parser": "^7.3.1", "@vitejs/plugin-react": "^4.2.1", - "@primer/react": "37.1.0", + "@primer/react": "37.2.0", "eslint": "^8.56.0", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-refresh": "^0.4.7", diff --git a/examples/consumer-test/package.json b/examples/consumer-test/package.json index 848d2f117ff..802eb212402 100644 --- a/examples/consumer-test/package.json +++ b/examples/consumer-test/package.json @@ -9,7 +9,7 @@ "@types/react": "^18.3.11", "@types/react-dom": "^18.2.19", "@types/styled-components": "^5.1.11", - "@primer/react": "37.1.0", + "@primer/react": "37.2.0", "react": "^18.0.0", "react-dom": "^18.0.0", "styled-components": "^5.3.11", diff --git a/examples/theming/package.json b/examples/theming/package.json index 1a08ef0eb92..4e8df949a62 100644 --- a/examples/theming/package.json +++ b/examples/theming/package.json @@ -11,7 +11,7 @@ }, "dependencies": { "@primer/octicons-react": "^19.9.0", - "@primer/react": "37.1.0", + "@primer/react": "37.2.0", "clsx": "^1.2.1", "next": "^14.2.10", "react": "^18.3.1", diff --git a/package-lock.json b/package-lock.json index b3a3ab281d0..373dd208b41 100644 --- a/package-lock.json +++ b/package-lock.json @@ -62,7 +62,7 @@ "name": "example-app-router", "version": "0.0.0", "dependencies": { - "@primer/react": "37.0.1", + "@primer/react": "37.1.0", "next": "^14.2.10", "react": "^18.3.1", "react-dom": "^18.3.1", @@ -81,7 +81,7 @@ "react-dom": "^18.3.1" }, "devDependencies": { - "@primer/react": "37.0.1", + "@primer/react": "37.1.0", "@types/react": "^18.3.11", "@types/react-dom": "^18.3.0", "@typescript-eslint/eslint-plugin": "^7.11.0", @@ -99,7 +99,7 @@ "name": "example-consumer-test", "version": "0.0.0", "dependencies": { - "@primer/react": "37.0.1", + "@primer/react": "37.1.0", "@types/react": "^18.3.11", "@types/react-dom": "^18.2.19", "@types/styled-components": "^5.1.11", @@ -125,7 +125,7 @@ "version": "0.0.0", "dependencies": { "@primer/octicons-react": "^19.9.0", - "@primer/react": "37.0.1", + "@primer/react": "37.1.0", "clsx": "^1.2.1", "next": "^14.2.10", "react": "^18.3.1", @@ -23950,6 +23950,7 @@ "version": "3.3.3", "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz", "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", + "dev": true, "bin": { "prettier": "bin/prettier.cjs" }, @@ -30068,7 +30069,7 @@ }, "packages/react": { "name": "@primer/react", - "version": "37.0.1", + "version": "37.1.0", "license": "MIT", "dependencies": { "@github/relative-time-element": "^4.4.3", @@ -30078,7 +30079,7 @@ "@primer/behaviors": "^1.7.2", "@primer/live-region-element": "^0.7.1", "@primer/octicons-react": "^19.9.0", - "@primer/primitives": "^9.0.3", + "@primer/primitives": "9.x || 10.x", "@styled-system/css": "^5.1.5", "@styled-system/props": "^5.1.5", "@styled-system/theme-get": "^5.1.2", @@ -30227,7 +30228,8 @@ }, "packages/react/node_modules/@prettier/sync": { "version": "0.5.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@prettier/sync/-/sync-0.5.2.tgz", + "integrity": "sha512-Yb569su456XNx5BsH/Vyem7xD6g/y9iLmLUzRKM1a/dhU/D7HqqvkAG72znulXlMXztbV0iiu9O5AL8K98TzZQ==", "dependencies": { "make-synchronized": "^0.2.8" }, @@ -30239,8 +30241,9 @@ } }, "packages/react/node_modules/@primer/primitives": { - "version": "9.1.1", - "license": "MIT", + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/@primer/primitives/-/primitives-9.1.2.tgz", + "integrity": "sha512-KecRJpUdIf14J3gVpoyMMJeQD6Sh5kcHk93N5bYch4XGB0GOZP3ypxz+NByMjr/2HHPsRfCCO5EEgNjmeWYUGQ==", "dependencies": { "@prettier/sync": "^0.5.2", "prettier": "3.3" diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index 9766e813765..7de84c6b740 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,19 @@ # @primer/react +## 37.2.0 + +### Minor Changes + +- [#5168](https://github.com/primer/react/pull/5168) [`b9749d4`](https://github.com/primer/react/commit/b9749d4efccf17b4aa669231a57df55333497ca2) Thanks [@TylerJDev](https://github.com/TylerJDev)! - TreeView: Adds indication of no nodes in a tree item, allows for `aria-expanded even if the item is empty. + +- [#5202](https://github.com/primer/react/pull/5202) [`293c574`](https://github.com/primer/react/commit/293c574a25d49bb52a2f5c17e4c54b1b1b598ddc) Thanks [@hussam-i-am](https://github.com/hussam-i-am)! - Update `SubNav` component to use CSS modules behind the feature flag primer_react_css_modules_team + +### Patch Changes + +- [#5225](https://github.com/primer/react/pull/5225) [`e732591`](https://github.com/primer/react/commit/e732591e939e5a86dc5ce2ce2da25388177b6a54) Thanks [@jonrohan](https://github.com/jonrohan)! - chore(Banner): Move Banner CSS module flag from staff to ga + +- [#5177](https://github.com/primer/react/pull/5177) [`26b54d8`](https://github.com/primer/react/commit/26b54d8a58e83e50127b5c04ac26ec953a89c108) Thanks [@lukasoppermann](https://github.com/lukasoppermann)! - Allow primitives dep to be if version 9 OR 10 + ## 37.1.0 ### Minor Changes diff --git a/packages/react/package.json b/packages/react/package.json index 7b66bd90142..f84e01dba94 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@primer/react", - "version": "37.1.0", + "version": "37.2.0", "description": "An implementation of GitHub's Primer Design System using React", "main": "lib/index.js", "module": "lib-esm/index.js", @@ -85,7 +85,7 @@ "@primer/behaviors": "^1.7.2", "@primer/live-region-element": "^0.7.1", "@primer/octicons-react": "^19.9.0", - "@primer/primitives": "^9.0.3", + "@primer/primitives": "9.x || 10.x", "@styled-system/css": "^5.1.5", "@styled-system/props": "^5.1.5", "@styled-system/theme-get": "^5.1.2", diff --git a/packages/react/src/ActionBar/ActionBar.stories.tsx b/packages/react/src/ActionBar/ActionBar.stories.tsx index f253a67d20e..1d1fb6e8d98 100644 --- a/packages/react/src/ActionBar/ActionBar.stories.tsx +++ b/packages/react/src/ActionBar/ActionBar.stories.tsx @@ -43,6 +43,14 @@ export const Default = () => ( ) +export const TextLabels = () => ( + + + + + +) + export const SmallActionBar = () => ( diff --git a/packages/react/src/ActionList/Item.tsx b/packages/react/src/ActionList/Item.tsx index 5db1765bfb5..268c7a4312f 100644 --- a/packages/react/src/ActionList/Item.tsx +++ b/packages/react/src/ActionList/Item.tsx @@ -147,7 +147,7 @@ export const Item = React.forwardRef( const hoverStyles = { '@media (hover: hover) and (pointer: fine)': { - ':hover:not([aria-disabled]):not([data-inactive])': { + '&:hover:not([aria-disabled]):not([data-inactive])': { backgroundColor: `actionListItem.${variant}.hoverBg`, color: getVariantStyles(variant, disabled, inactive).hoverColor, boxShadow: `inset 0 0 0 max(1px, 0.0625rem) ${theme?.colors.actionListItem.default.activeBorder}`, @@ -157,7 +157,7 @@ export const Item = React.forwardRef( border: `2 solid`, boxShadow: `0 0 0 2px ${theme?.colors.accent.emphasis}`, }, - ':active:not([aria-disabled]):not([data-inactive])': { + '&:active:not([aria-disabled]):not([data-inactive])': { backgroundColor: `actionListItem.${variant}.activeBg`, color: getVariantStyles(variant, disabled, inactive).hoverColor, }, diff --git a/packages/react/src/ActionMenu/ActionMenu.examples.stories.tsx b/packages/react/src/ActionMenu/ActionMenu.examples.stories.tsx index a5a77a18190..de9f4c24344 100644 --- a/packages/react/src/ActionMenu/ActionMenu.examples.stories.tsx +++ b/packages/react/src/ActionMenu/ActionMenu.examples.stories.tsx @@ -233,6 +233,64 @@ export const ShortcutMenu = () => { ) } +export const ContextMenu = () => { + const ListItemWithContextMenu = ({children}: {children: string}) => { + const handleContextMenu: React.MouseEventHandler = event => { + event.preventDefault() + setOpen(true) + } + + const [open, setOpen] = React.useState(false) + const triggerRef = React.useRef(null) + + return ( + // We need to add an aria-label for improving support for more assistive technologies. For example: VoiceOver might not detect the `name` without `aria-label` + // Since this has a custom context menu, it's ok to add a tabIndex + // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex +
  • + {children} + + Anchor + + + + Copy link + ⌘C + + + Quote reply + ⌘Q + + + Edit comment + ⌘E + + View file + + + Delete file + ⌘D + + + + +
  • + ) + } + + return ( + <> +
    Right click the list items below to see the context menu
    + +
      + List item one + List item two + List item three +
    + + ) +} + export const CustomAnchor = () => ( diff --git a/packages/react/src/Banner/Banner.tsx b/packages/react/src/Banner/Banner.tsx index f33021d67d7..c61f130fd2e 100644 --- a/packages/react/src/Banner/Banner.tsx +++ b/packages/react/src/Banner/Banner.tsx @@ -88,7 +88,7 @@ const labels: Record = { warning: 'Warning', } -const CSS_MODULES_FEATURE_FLAG = 'primer_react_css_modules_staff' +const CSS_MODULES_FEATURE_FLAG = 'primer_react_css_modules_ga' export const Banner = React.forwardRef(function Banner( { diff --git a/packages/react/src/Blankslate/Blankslate.module.css b/packages/react/src/Blankslate/Blankslate.module.css index 05fa2c0a442..5f0029cbcfd 100644 --- a/packages/react/src/Blankslate/Blankslate.module.css +++ b/packages/react/src/Blankslate/Blankslate.module.css @@ -31,6 +31,7 @@ .Description { margin: 0; margin-bottom: var(--base-size-8); + text-align: center; } .Heading { diff --git a/packages/react/src/ButtonGroup/ButtonGroup.tsx b/packages/react/src/ButtonGroup/ButtonGroup.tsx index e3398885b3f..74f9ff32e15 100644 --- a/packages/react/src/ButtonGroup/ButtonGroup.tsx +++ b/packages/react/src/ButtonGroup/ButtonGroup.tsx @@ -9,7 +9,7 @@ import {clsx} from 'clsx' import {useFeatureFlag} from '../FeatureFlags' const StyledButtonGroup = toggleStyledComponent( - 'primer_react_css_modules_team', + 'primer_react_css_modules_staff', 'div', styled.div` display: inline-flex; @@ -78,7 +78,7 @@ const ButtonGroup = React.forwardRef(function But {children, className, ...rest}, forwardRef, ) { - const enabled = useFeatureFlag('primer_react_css_modules_team') + const enabled = useFeatureFlag('primer_react_css_modules_staff') return ( > + +export const WithCSS = () => ( + + + + Default label + + + + +) + +export const WithSx = () => ( + + + Default label + + + +) + +export const WithSxAndCSS = () => ( + + + + Default label + + + + +) diff --git a/packages/react/src/Token/Token.dev.stories.tsx b/packages/react/src/Token/Token.dev.stories.tsx new file mode 100644 index 00000000000..ca6c9c8b68c --- /dev/null +++ b/packages/react/src/Token/Token.dev.stories.tsx @@ -0,0 +1,10 @@ +import React from 'react' +import type {Meta} from '@storybook/react' +import Token from './Token' + +export default { + title: 'Components/Token/Dev', + component: Token, +} as Meta + +export const DevDefault = () => diff --git a/packages/react/src/TreeView/TreeView.test.tsx b/packages/react/src/TreeView/TreeView.test.tsx index 78bfceae3ba..eb2329f9b22 100644 --- a/packages/react/src/TreeView/TreeView.test.tsx +++ b/packages/react/src/TreeView/TreeView.test.tsx @@ -189,6 +189,19 @@ describe('Markup', () => { expect(noDescription).toHaveAccessibleDescription(' ') }) + it('should not have aria-describedby when no leading or trailing visual', () => { + const {getByLabelText} = renderWithTheme( + + Item 1 + Item 2 + , + ) + + const noDescription = getByLabelText(/Item 1/) + expect(noDescription).not.toHaveAccessibleDescription() + expect(noDescription).not.toHaveAttribute('aria-describedby') + }) + it('should include `aria-expanded` when a SubTree contains content', async () => { const user = userEvent.setup({ advanceTimers: jest.advanceTimersByTime, diff --git a/packages/react/src/TreeView/TreeView.tsx b/packages/react/src/TreeView/TreeView.tsx index 71f41042722..a1e4fc882b6 100644 --- a/packages/react/src/TreeView/TreeView.tsx +++ b/packages/react/src/TreeView/TreeView.tsx @@ -458,6 +458,11 @@ const Item = React.forwardRef( [onSelect, setIsExpandedWithCache, toggle], ) + const ariaDescribedByIds = [ + slots.leadingVisual ? leadingVisualId : null, + slots.trailingVisual ? trailingVisualId : null, + ].filter(Boolean) + return ( ( role="treeitem" aria-label={ariaLabel} aria-labelledby={ariaLabel ? undefined : ariaLabelledby || labelId} - aria-describedby={`${leadingVisualId} ${trailingVisualId}`} + aria-describedby={ariaDescribedByIds.length ? ariaDescribedByIds.join(' ') : undefined} aria-level={level} aria-expanded={(isSubTreeEmpty && (!isExpanded || !hasSubTree)) || expanded === null ? undefined : isExpanded} aria-current={isCurrentItem ? 'true' : undefined}