Skip to content

Commit

Permalink
feat: add focus visible outlines with browser default colors as a glo…
Browse files Browse the repository at this point in the history
…bal style in stitches config ts [SRED-163] (#391)

* feat: add focus visible outlines with browser default colors as a global style in stitches config ts

* chore(release): publish

* fix: move focus-visible outline styles to wildcard section of stitches config ts

* chore(release): publish

* chore: revert version number to 1.5.2

* fix: address lingering merge conflict issues
  • Loading branch information
hs4man21 authored May 23, 2023
1 parent 9038fff commit 6c8252b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.washingtonpost.com/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@radix-ui/react-toggle-group": "^1.0.1",
"@stitches/react": "1.2.8",
"@washingtonpost/site-favicons": "^0.1.3",
"@washingtonpost/tachyons-css": "^1.7.0",
"@washingtonpost/tachyons-css": "^1.7.1",
"@washingtonpost/wpds-accordion": "1.5.2",
"@washingtonpost/wpds-assets": "^1.19.2",
"@washingtonpost/wpds-kitchen-sink": "1.5.2",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions ui/theme/src/stitches.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ export const globalStyles = globalCss({
},
"*": {
boxSizing: "border-box",
"&:focus-visible": {
outline: "1px auto Highlight",
"@media screen and (-webkit-min-device-pixel-ratio: 0)": {
outline: "1px auto -webkit-focus-ring-color",
},
},
},
html: {
overflowX: "hidden",
Expand Down

4 comments on commit 6c8252b

@vercel
Copy link

@vercel vercel bot commented on 6c8252b May 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 6c8252b May 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

wpds-ui-kit-vitejs-example – ./apps/vite-project

wpds-ui-kit-vitejs-example.preview.now.washingtonpost.com
wpds-ui-kit-vitejs-example-git-main.preview.now.washingtonpost.com

@vercel
Copy link

@vercel vercel bot commented on 6c8252b May 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

wpds-ui-kit – ./build.washingtonpost.com

build.washingtonpost.com
wpds-ui-kit.preview.now.washingtonpost.com
wpds-ui-kit-git-main.preview.now.washingtonpost.com

@vercel
Copy link

@vercel vercel bot commented on 6c8252b May 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

wpds-ui-kit-storybook – ./

wpds-ui-kit-storybook-git-main.preview.now.washingtonpost.com
wpds-ui-kit-storybook.preview.now.washingtonpost.com

Please sign in to comment.