Here's what I ended up with (click the (...) button): https://sindresorhus.com/icon-preview
Source: https://github.com/sindresorhus/sindresorhus.github.com/blob/main/source/components/widgets/OverflowMenu.astro
@sindresorhus It looks pretty but lacks accessibility: missing focus state, missing label, plus `...` will probably be awkward and confusing in a screen reader.
I do agree that HTML should provide such components that works the right way by default.
@sindresorhus It looks pretty but lacks accessibility: missing focus state, missing label, plus `...` will probably be awkward and confusing in a screen reader.
I do agree that HTML should provide such components that works the right way by default.