Skip to content

Commit

Permalink
feat: change focus styling for links and buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSuperDev committed Aug 30, 2021
1 parent 0b85e0d commit aa71317
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/buttons/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ export default function Button({
className={clsx(
'py-2 px-4 rounded font-bold hover:text-primary-400 animated-underline',
'border border-gray-600',
'focus:outline-none focus-visible:text-primary-400',
{
'bg-dark text-white': variants === 'primary',
'bg-white text-dark hover:bg-gray-200 hover:text-dark transition-colors':
'bg-white text-dark hover:bg-gray-200 hover:text-dark focus-visible:text-dark':
variants === 'secondary',
},
className
Expand Down
3 changes: 2 additions & 1 deletion src/components/links/ButtonLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ export default function ButtonLink({
className={clsx(
'py-2 px-4 inline-block rounded font-bold hover:text-primary-400 animated-underline',
'border border-gray-600',
'focus:outline-none focus-visible:text-primary-400',
{
'bg-dark text-white': variants === 'primary',
'bg-white text-dark hover:bg-gray-200 hover:text-dark transition-colors':
'bg-white text-dark hover:bg-gray-200 hover:text-dark focus-visible:text-dark':
variants === 'secondary',
},
className
Expand Down
1 change: 1 addition & 0 deletions src/components/links/CustomLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export default function CustomLink({
{...rest}
className={clsx(
'inline-flex items-center font-bold hover:text-primary-400 animated-underline',
'focus:outline-none focus-visible:text-primary-400 ',
className
)}
>
Expand Down

0 comments on commit aa71317

Please sign in to comment.