Repository navigation
fix(table): make hover state visible on striped rows - #1701
AbdulNafay42 wants to merge 1 commit into
Conversation
|
@AbdulNafay42 is attempting to deploy a commit to the Bergside Team on Vercel. A member of the Team first needs to authorize it. |
🦋 Changeset detectedLatest commit: 6340da3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Fixes #543
Summary
On a striped table with
hoverable, the hover color washover:bg-gray-50, which is the same color as the even striped rows (even:bg-gray-50). Hovering over those rows showed no visible change.This changes the hovered row color to
hover:bg-gray-100(light mode). Dark mode staysdark:hover:bg-gray-600, which was already distinct from the striped colors. This follows the approach suggested in the issue discussion.Changes
Table/theme.ts:hoveredis nowhover:bg-gray-100 dark:hover:bg-gray-600Table.test.tsx: updated the hover test and added a test for striped plus hoverable rowspatch)Breaking changes
None. This is a color-only change in the default theme. Anyone using a custom
hoveredtheme is not affected.Summary by CodeRabbit