Skip to content

Commit

Permalink
fix(ui): only focus elements when they receive it through tab
Browse files Browse the repository at this point in the history
resolves LN-Zap#3127
  • Loading branch information
korhaliv committed Nov 8, 2019
1 parent 404c807 commit f9b5da1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions renderer/themes/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @file Defines core theme elements shared across all themes.
* These items can be overriden on a per theme basis.
*/

import 'focus-visible/dist/focus-visible'
/**
* Colour palette
*
Expand Down Expand Up @@ -96,7 +96,7 @@ const buttons = {
'&:hover:enabled': {
bg: 'highlight',
},
'&:focus': {
'&.focus-visible': {
bg: 'highlight',
},
},
Expand All @@ -118,7 +118,7 @@ const buttons = {
'&.active': {
opacity: 1,
},
'&:focus': {
'&.focus-visible': {
opacity: 1,
},
},
Expand All @@ -134,7 +134,7 @@ const buttons = {
'&:hover:enabled': {
bg: 'highlight',
},
'&:focus': {
'&.focus-visible': {
bg: 'highlight',
},
},
Expand Down

0 comments on commit f9b5da1

Please sign in to comment.