Skip to content

Commit

Permalink
Make checked switch button focus state visible
Browse files Browse the repository at this point in the history
  • Loading branch information
angelikatyborska authored and josevalim committed Aug 22, 2023
1 parent 32bb4ff commit 67af3be
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions assets/css/settings.css
Expand Up @@ -92,6 +92,19 @@
background-color: var(--main);
}

#settings-modal-content .switch-button__checkbox:focus {
outline: 0;
}

#settings-modal-content .switch-button__checkbox:focus + .switch-button__bg {
outline: 2px solid var(--main);
outline-offset: 2px;
}

#settings-modal-content .switch-button__checkbox:focus:not(:focus-visible) + .switch-button__bg {
outline: 0;
}

#settings-modal-content .settings-select {
cursor: pointer;
position: relative;
Expand Down

0 comments on commit 67af3be

Please sign in to comment.