Skip to content

Commit

Permalink
Fix the specificity of table mobile card styles
Browse files Browse the repository at this point in the history
  • Loading branch information
bartaz committed Mar 26, 2024
1 parent 46e0306 commit 404367d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scss/_base_tables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@
// stylelint-enable selector-max-type

%table-row-border {
border-top: 1px solid $colors--theme--border-default;
border-top: 1px solid $colors--theme--border-low-contrast;
}
}
5 changes: 3 additions & 2 deletions scss/_patterns_table-mobile-card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
width: 100%;
}

tr {
// tbody selector needed to override the default table styles
tbody tr {
border: 1px solid $colors--theme--border-default;
display: block;
margin-bottom: $spv--x-large;
Expand Down Expand Up @@ -64,7 +65,7 @@
}

&:not(:first-child)::after {
background-color: $colors--theme--border-default;
background-color: $colors--theme--border-low-contrast;
content: '';
height: 1px;
left: 0;
Expand Down

0 comments on commit 404367d

Please sign in to comment.