diff --git a/CHANGELOG.md b/CHANGELOG.md index c859c889..817f7ea6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Bulma Changelog +## 0.4.2 + +* Fix #728 selected row on striped table + ## 0.4.1 * Fix #568 max-width container diff --git a/docs/css/bulma-docs.css b/docs/css/bulma-docs.css index d8daca6e..63620f85 100644 --- a/docs/css/bulma-docs.css +++ b/docs/css/bulma-docs.css @@ -2904,11 +2904,11 @@ input[type="submit"].button { padding: 0.25em 0.5em; } -.table.is-striped tbody tr:nth-child(even) { +.table.is-striped tbody tr:not(.is-selected):nth-child(even) { background-color: #fafafa; } -.table.is-striped tbody tr:nth-child(even):hover { +.table.is-striped tbody tr:not(.is-selected):nth-child(even):hover { background-color: whitesmoke; } diff --git a/sass/elements/table.sass b/sass/elements/table.sass index 1cdb4c23..8bbaf468 100644 --- a/sass/elements/table.sass +++ b/sass/elements/table.sass @@ -75,7 +75,7 @@ $table-row-even-hover-background: $white-ter !default padding: 0.25em 0.5em &.is-striped tbody - tr + tr:not(.is-selected) &:nth-child(even) background-color: $table-row-even-background &:hover