Skip to content

fix(frontend): hover highlight without a fade - #4075

Merged
Kadrian merged 1 commit into
developfrom
fix/menu-hover-performance
Oct 12, 2026
Merged

Kadrian merged 1 commit into
developfrom
fix/menu-hover-performance

Conversation

@Kadrian

@Kadrian Kadrian commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

Hover highlight without a fade on menu items, list rows and combobox options.

Sweeping the pointer over a long menu felt laggy. Two things add up: react-aria moves focus to the hovered item and re-renders every item of the menu on each hover (adobe/react-spectrum#5897, no fix upstream yet; a one-line comment in Menu.tsx points there), and our 100 ms background transition made the highlight trail the cursor on top of that. The transition is the part in our hands.

  • transition-[background-color] removed from MenuItem, GridList rows and ComboBox options, so all three highlight the same way
  • new story UiComponents/Menu › ManyItems with 200 items to re-test after react-aria bumps

@Kadrian
Kadrian marked this pull request as ready for review October 8, 2026 14:28
@Kadrian
Kadrian enabled auto-merge October 8, 2026 14:28
@Kadrian
Kadrian added this pull request to the merge queue Oct 12, 2026
Merged via the queue into develop with commit 3865f8b Oct 12, 2026
10 checks passed
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