Repository navigation
fix(Option): no border inside menus on highlighted, hovered or focused items - #499
Merged
Merged
Conversation
The first item of a menu is highlighted as it opens, and its 1px border sat inside the panel's own border. Every state now shows only the fill; keyboard focus keeps its brand ring. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016gNJtwQuhoLQdpygLCVEyk
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Lorant · project thread
What
When a menu opens, its first item is highlighted, and
Optiondrew a 1px border on that item. The border sat inside the panel's own border, so the menu looked like a box inside a box. This showed up on the Aveiro agent page and happens on 2.8.0 and on main.Now the highlighted, hovered, focused and danger states of an option show only the fill. The border stays transparent at the same width, so nothing moves. Keyboard focus (
:focus-visible) still gets the brand ring, so the accessibility cue is kept.The other half of the report, making the item corners sit inside the panel's corners, already shipped in 2.8.0 (#386: option radius =
radius-lminus the panel's 4px padding). If Aveiro's corners still don't line up, it's because Aveiro sets its own radius or padding.This doesn't break anything: no prop or token changes, so it doesn't need to wait for 3.0.
Checks
vitestfor the option, dropdown and API-surface suites: 42 tests passborder-colorleft is the transparent baseGenerated by Claude Code