Commit Graph
2 Commits
Author SHA1 Message Date
LegGasai 46cf27ce35 fix(session-panel): keep a row highlighted only for its own open menu
A panel row stayed highlighted while anything inside it carried
aria-expanded="true". The rule means a row's open menu, so it now names
the menu part: a body button that discloses something else highlights its
row on hover alone.

The layout e2e opens the working folder row's menu in the real app and
checks that the row keeps its highlight and its More button after the
pointer leaves for the menu.
2026-11-15 16:21:55 +08:00
LegGasai eba69b9fd6 refactor(session-panel): share the row look through CSS marks instead of a row Factory
A row Factory took each contributor's icon, text, trailing control, and
menu as React nodes in props, which the client rules forbid. Each
contributor now writes its own row markup and marks the parts with
`data-session-panel-row` and `data-row-part`; the panel's stylesheet lays
them out, so rows from every package keep one geometry and a contributor
can restyle a part with its own class.

A menu part that renders nothing, such as the shared menu button while its
target has no menu entries, takes no room and no longer makes the row
highlight.
2026-11-13 19:51:46 +08:00