Skip to content

fix(ui): prevent hovered sibling from overlapping focused IconButton ring - #22

Merged
lxsmnsyc merged 1 commit into
solidjs:mainfrom
Xoppyc:fix/icon-button-focus-ring
Oct 20, 2026
Merged

lxsmnsyc merged 1 commit into
solidjs:mainfrom
Xoppyc:fix/icon-button-focus-ring

Conversation

@Xoppyc

@Xoppyc Xoppyc commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Previously, when hovering a button right after a focused button in the DOM, the hovered button's background would paint over the focused button's outline ring and cut off one side of it.

This adds position: relative; z-index: 1; to [data-solid-icon-button]:focus so the focus ring stays above adjacent hovered buttons.

Before

Before

After

After

P.S. Very happy to make my first contribution to Solid! Even though it's devtools and not core, it's the first of a few visual/UX fixes I'm planning to send over.

@lxsmnsyc
lxsmnsyc self-requested a review October 20, 2026 13:22

@lxsmnsyc lxsmnsyc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@lxsmnsyc
lxsmnsyc merged commit 720328a into solidjs:main Oct 20, 2026
3 checks passed
@Xoppyc
Xoppyc deleted the fix/icon-button-focus-ring branch October 20, 2026 13:38
@Xoppyc
Xoppyc restored the fix/icon-button-focus-ring branch October 20, 2026 13:38
@Xoppyc
Xoppyc deleted the fix/icon-button-focus-ring branch October 20, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants