Skip to content
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

refactor: style specific sticky columns in carbon row #6351

Merged
merged 8 commits into from
Nov 18, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -413,17 +413,27 @@
}
}

.#{$block-class}__carbon-row td {
.#{$block-class}__carbon-row .#{$block-class}__left-sticky-column-cell,
.#{$block-class}__carbon-row .#{$block-class}__right-sticky-column-cell,
.#{$block-class}__carbon-row .#{$block-class}__checkbox-cell-sticky-left {
/* stylelint-disable-next-line declaration-no-important */
background-color: $layer-01;
}

.#{$block-class}__carbon-row:hover td {
.#{$block-class}__carbon-row:hover .#{$block-class}__left-sticky-column-cell,
.#{$block-class}__carbon-row:hover .#{$block-class}__right-sticky-column-cell,
.#{$block-class}__carbon-row:hover
.#{$block-class}__checkbox-cell-sticky-left {
/* stylelint-disable-next-line declaration-no-important */
background-color: $layer-hover-01;
}

.#{c4p-settings.$carbon-prefix}--data-table--selected td {
.#{c4p-settings.$carbon-prefix}--data-table--selected
.#{$block-class}__left-sticky-column-cell,
.#{c4p-settings.$carbon-prefix}--data-table--selected
.#{$block-class}__right-sticky-column-cell,
.#{c4p-settings.$carbon-prefix}--data-table--selected
.#{$block-class}__checkbox-cell-sticky-left {
/* stylelint-disable-next-line declaration-no-important */
background-color: $layer-selected-01;
}
Expand Down
Loading