W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2020

Re: [csswg-drafts] [selectors] :focus-visible on a <select> element (#5822)

From: Emilio Cobos Álvarez via GitHub <sysbot+gh@w3.org>
Date: Wed, 23 Dec 2020 23:49:49 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-750588327-1608767388-sysbot+gh@w3.org>
I think that the Firefox behavior is preferable here. To me at least dropdown selects are more similar to `<button>` than to other `<input>` elements. Also, I don't think I'm concerned about not showing outlines in this case, as when the select is focused there's a clear indicator of that (the dropdown).

>  BTW something similar happens with radio buttons, that you can use the keyboard arrows to move between them, however in that case when you click on a radio button neither Chromium or Firefox match :focus-visible.

That's working definitely as expected. That's regular focus navigation which always matches `:focus-visible` and is different to clicks.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 23 December 2020 23:49:51 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:24 UTC