Skip to content

Commit

Permalink
Merge pull request #134 from josemarluedke/bug/fix-button-outline
Browse files Browse the repository at this point in the history
Fix button outline due to TW v2 upgrade
  • Loading branch information
josemarluedke authored Jan 10, 2021
2 parents 4336f2b + ca0a447 commit ee8b75a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/buttons/tailwind/default-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const defaultTheme = require('tailwindcss/resolveConfig')(

const defaultConfig = {
borderRadius: defaultTheme.borderRadius.DEFAULT,
focusBoxShadow: '0 0 0 3px rgba(59, 130, 246, 0.45)',
default: {
contrastColor: defaultTheme.colors.white,
color: defaultTheme.colors.gray[700],
Expand Down Expand Up @@ -106,7 +107,7 @@ function defaultOptions({ config }) {
borderColor: defaultTheme.colors.transparent,
'&.focus-visible:focus': {
outline: 'none',
boxShadow: defaultTheme.boxShadow.outline
boxShadow: config.focusBoxShadow
},
'&[disabled]': {
opacity: '0.4',
Expand Down

0 comments on commit ee8b75a

Please sign in to comment.