fix: keyboard unable to target theme switcher (#488)

This commit is contained in:
Kitto Khrangtong 2021-06-17 16:05:22 -04:00 committed by GitHub
parent fc4433e640
commit 24b360cb17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -224,7 +224,8 @@ button:hover {
border-radius: 99em; border-radius: 99em;
background-color: var(--theme-bg); background-color: var(--theme-bg);
} }
#theme-toggle:focus-within {
#theme-toggle > label:focus-within {
outline: 2px solid transparent; outline: 2px solid transparent;
box-shadow: 0 0 0 0.08em var(--theme-accent), 0 0 0 0.12em white; box-shadow: 0 0 0 0.08em var(--theme-accent), 0 0 0 0.12em white;
} }