Skip to content

Commit

Permalink
Add focus styles to TW typography
Browse files Browse the repository at this point in the history
  • Loading branch information
robdekort committed Nov 8, 2021
1 parent 4896781 commit 1fa9bd4
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .gitignore
Expand Up @@ -15,7 +15,7 @@ Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
# Comment the following lines if you don't compile your assets on your server:
/public/js/
/public/css/
/public/mix-manifest.json
# Uncomment the following lines when you compile your assets on the server (recommended):
# /public/js/
# /public/css/
# /public/mix-manifest.json
8 changes: 4 additions & 4 deletions dev/.gitignore
Expand Up @@ -15,7 +15,7 @@ Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
# Comment the following lines if you don't compile your assets on your server:
/public/js/
/public/css/
/public/mix-manifest.json
# Uncomment the following lines when you compile your assets on the server (recommended):
# /public/js/
# /public/css/
# /public/mix-manifest.json
1 change: 1 addition & 0 deletions dev/public/css/site.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dev/public/css/tailwind.css

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

1 change: 1 addition & 0 deletions dev/public/js/site.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions dev/public/mix-manifest.json
@@ -0,0 +1,4 @@
{
"/js/site.js": "/js/site.js?id=425011208a3254bef401",
"/css/site.css": "/css/site.css?id=74537195da7f99d885c3"
}
8 changes: 8 additions & 0 deletions dev/tailwind.config.typography.js
Expand Up @@ -24,6 +24,14 @@ module.exports = {
'&:hover': {
color: theme('colors.primary.DEFAULT'),
},
'&.focus-visible': {
boxShadow: `0 0 0 2px ${theme('colors.primary.DEFAULT')}`,
borderRadius: theme('borderRadius.sm'),
},
'&:focus-visible': {
boxShadow: `0 0 0 2px ${theme('colors.primary.DEFAULT')}`,
borderRadius: theme('borderRadius.sm'),
},
},
'a.no-underline': {
textDecoration: 'none',
Expand Down

0 comments on commit 1fa9bd4

Please sign in to comment.