Skip to content

Commit

Permalink
Refactor button focus states -- high contrast mode requires the outli…
Browse files Browse the repository at this point in the history
…ne transparent rule since it will reject box-shadow but flip the outline to black so it's a trick to keep that working properly.
  • Loading branch information
roblevintennis committed Sep 30, 2020
1 parent 4045ad6 commit 8f86bc6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions agnosticui-css/button.css
Expand Up @@ -122,6 +122,8 @@

.btn:focus {
box-shadow: 0 0 0 3px rgba(55, 149, 225, 0.5);
/* Needed for High Contrast mode */
outline: 3px solid transparent;
}

/*
Expand Down

0 comments on commit 8f86bc6

Please sign in to comment.