feat(table): all-row hover, opt-in zebra striping, always-visible sort affordance #270
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/mapps-263-table-polish"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Polish the shared table (src/components/table.rs) so dense list pages are easier to scan and sortable columns are discoverable, on desktop and touch alike, with every list page benefiting through the shared component.
TableRow now applies a subtle
hover:bg-surface-2to all rows (not just clickable ones) plustransition-colors; clickable rows still add the pointer cursor. Table gains an opt-instripedprop that tints odd body rows via a[&_tbody_tr:nth-child(odd)]:bg-surface-2child selector, cascading to rows regardless of how the caller composes TableBody. TableHeader replaces the never-firingopacity-0 group-hoversort hint (thethcarried nogroupclass, so it was invisible even on hover and always on touch) with a faint always-visibleopacity-40up/down chevron; the active asc/desc arrows still render at full strength.Striping is enabled on the dense list tables: tickets, companies, contacts, and knowledge base. Tokens only (bg-surface-2), so the theme-token guard stays satisfied for the changed lines.
#MAPPS-263
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com