Skip to content

Commit

Permalink
feat(DataTable): adjust expandable row striping (#207)
Browse files Browse the repository at this point in the history
Expandable rows will now always match the stripe state of the row that toggles them.

This fix is related to carbon-react#66 and is required to allow that fix to work properly.
  • Loading branch information
jlengstorf authored and hellobrian committed Jun 28, 2017
1 parent af538e4 commit e1e34ff
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/data-table/_data-table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,19 @@

// zebra stripes
.bx--table-body {
> .bx--parent-row, > .bx--parent-row + .bx--expandable-row {
> .bx--parent-row, > .bx--parent-row {
background-color: $ui-01;

& + .bx--expandable-row {
background-color: $ui-01;
}

&--even {
background-color: $ui-03;

& + .bx--expandable-row {
background-color: $ui-03;
}
}
}
}
Expand Down

0 comments on commit e1e34ff

Please sign in to comment.