Skip to content

Commit

Permalink
Add focus ring and remove default focus outline
Browse files Browse the repository at this point in the history
  • Loading branch information
endriu3314 authored and eidam committed Jan 29, 2021
1 parent 8d70a0f commit ee586c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/themeSwitcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ export default function ThemeSwitcher() {
setDark(!darkmode)
}

const buttonColor = darkmode ? 'bg-gray-700' : 'bg-gray-200'
const buttonColor = darkmode ? 'bg-gray-700 focus:ring-gray-700' : 'bg-gray-200 focus:ring-gray-200'

return (
<button
className={`${buttonColor} rounded-full h-7 w-7 mr-4`}
className={`${buttonColor} rounded-full h-7 w-7 mr-4 focus:outline-none focus:ring-2 focus:ring-opacity-50`}
onClick={changeTheme}
>
{darkmode ? sunIcon : moonIcon}
Expand Down

0 comments on commit ee586c9

Please sign in to comment.