From 24b360cb17d641ffd037b9032b5be672326ea21c Mon Sep 17 00:00:00 2001 From: Kitto Khrangtong Date: Thu, 17 Jun 2021 16:05:22 -0400 Subject: [PATCH] fix: keyboard unable to target theme switcher (#488) --- examples/docs/public/index.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/docs/public/index.css b/examples/docs/public/index.css index c5ae87f5c6..4944ddbd48 100644 --- a/examples/docs/public/index.css +++ b/examples/docs/public/index.css @@ -224,7 +224,8 @@ button:hover { border-radius: 99em; background-color: var(--theme-bg); } -#theme-toggle:focus-within { + +#theme-toggle > label:focus-within { outline: 2px solid transparent; box-shadow: 0 0 0 0.08em var(--theme-accent), 0 0 0 0.12em white; }