Re: [csswg-drafts] [css-color] Keyboard operability for the previews (#7687)

We just need to make it focusable (e.g. by adding `tabindex`), and then use `:is(:hover, :focus)` instead of `:hover`. 

We could even write script to make them focusable en masse:

```js
for (let swatch of document.querySelectorAll(".swatch") swatch.setAttribute("tabindex", "0");
```

-- 
GitHub Notification of comment by LeaVerou
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7687#issuecomment-1268494015 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 5 October 2022 14:39:25 UTC