Skip to content

Commit

Permalink
fix: add visible focus state to actions menu for A11y (#841)
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz authored Feb 9, 2022
1 parent 27594b9 commit d71f2b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vega-embed.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
border-radius: 999px;
opacity: 0.2;
transition: opacity 0.4s ease-in;
outline: none;
cursor: pointer;
line-height: 0px; // For Safari

Expand All @@ -48,7 +47,7 @@
}

&:hover summary,
&:focus summary {
&:focus-within summary {
opacity: 1 !important;
transition: opacity 0.2s ease;
}
Expand Down Expand Up @@ -80,7 +79,8 @@
color: #434a56;
text-decoration: none;

&:hover {
&:hover,
&:focus {
background-color: #f7f7f9;
color: black;
}
Expand Down

0 comments on commit d71f2b2

Please sign in to comment.