-
Notifications
You must be signed in to change notification settings - Fork 71
Add hover styles highlight, make table row clickable when all items link to same page #280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…or membership list
…render highlight color on hover and respect unique links within same row
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request introduces hover styles to highlight clickable rows and updates the table components on several pages to improve the clickable experience. Key changes include:
- Adding hover effects (background color and color changes) to list and detail views on users, roles, groups, and apps.
- Replacing standard TableRow elements with a custom LinkTableRow component for entire row clickability.
- Converting individual Link components to clickable rows using onClick and navigate in apps pages.
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/pages/users/Read.tsx | Added hover styles to link components and audit icon. |
| src/pages/users/List.tsx | Replaced TableRow with LinkTableRow for full row clicks. |
| src/pages/roles/List.tsx | Introduced LinkTableRow for clickable rows and improved description truncation. |
| src/pages/groups/Read.tsx | Applied hover color changes to group links. |
| src/pages/groups/List.tsx | Updated row components to use LinkTableRow. |
| src/pages/apps/Read.tsx | Updated clickable rows with onClick; added hover styling. |
| src/pages/apps/List.tsx | Converted rows to LinkTableRow for full row linking. |
| src/components/LinkTableRow.tsx | Created a reusable component to wrap table rows with a clickable Link. |
Comments suppressed due to low confidence (1)
src/pages/users/Read.tsx:187
- Remove the extra space in the color value ('inherit ') to ensure consistent styling; use 'inherit' instead.
color: 'inherit ',
| sx={{ | ||
| cursor: 'pointer', | ||
| transition: 'all 0.2s ease', | ||
| '&:hover': { |
Copilot
AI
Jun 10, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding keyboard accessibility support (e.g., tabIndex and onKeyDown handler) to the clickable TableRow for improved accessibility.
Changes to the tables on the following pages
Out of scope due to list entries with multiple links: