Skip to content

Commit

Permalink
style(datatable): isolate row hover styles from Toggletip links (#16918)
Browse files Browse the repository at this point in the history
* style(datatable): isolate row hover styles from Toggletip links

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.

* test: temporary story to test tooltips within data tables

* test: remove temporary table tooltip story

---------

Co-authored-by: Taylor Jones <[email protected]>
  • Loading branch information
cuppajoey and tay1orjones authored Aug 28, 2024
1 parent e99eca3 commit 67d255d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/styles/scss/components/data-table/_data-table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -121,16 +121,16 @@
}

.#{$prefix}--data-table
tr
+ :not(.#{$prefix}--popover-container):hover
.#{$prefix}--link {
tr:hover
.#{$prefix}--link:not(.#{$prefix}--popover-container .#{$prefix}--link) {
color: $link-secondary;
}

.#{$prefix}--data-table
tr
+ :not(.#{$prefix}--popover-container):hover
.#{$prefix}--link--disabled {
tr:hover
.#{$prefix}--link--disabled:not(
.#{$prefix}--popover-container .#{$prefix}--link
) {
color: $text-disabled;
}

Expand Down

0 comments on commit 67d255d

Please sign in to comment.