-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
style(datatable): isolate row hover styles from Toggletip links #16918
style(datatable): isolate row hover styles from Toggletip links #16918
Conversation
Changes: - Improve CSS selector which modifies inline links when their parent row is hovered over. Isolate the color change from affecting links within an adjacent cell's toggletip.
✅ Deploy Preview for v11-carbon-react ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Hey can you create a test story, so that we can test in deploy that can be removed once we approve. |
@riddhybansal I've added a test story which you can find under DataTable → Basic → Test with Tooltips |
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.
Thanks for doing this! LGTM once the test story is removed.
My pleasure! I'll wait until the final review is finished then I'll remove the test story. |
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.
LGTM! Will merge after you remove test story
Test story is removed ✅ |
67d255d
Hey there! v11.65.0 was just released that references this issue/PR. |
#15965 attempted to prevent table row hover states from affecting links within nested
Toggletips
; however, the solution was incomplete and caused a style regression.❌ Before
Toggletip-hover-before.mov
As demonstrated above:
Toggletip
is adjacent to a link, the intended hover styles are no longer applied to the link (i.e., the link color does not change when the row is hovered on).Toggletip
is in an adjacent cell, the row hover state works, but it affects theToggletip
's link.📝 Changelog
Changed
Toggletip
.✅ After
Toggletip-hover-after.mov
🧪 Testing / Reviewing
DataTable
storybook example: carbon-datatable-toggletip-story.js