Skip to content

Commit cc6b8e2

Browse files
Limit blue background to th in thead or tfoot
1 parent b5c9abe commit cc6b8e2

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

assets-src/styles/sass/30-base/_tables.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,13 @@ table caption {
3434
}
3535

3636
th {
37+
vertical-align: bottom;
38+
}
39+
40+
thead th,
41+
tfoot th {
3742
background-color: $deep-blue;
3843
color: $white;
39-
vertical-align: bottom;
4044
}
4145

4246
td {

design-system-templates/components/table.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
</caption>
55
<thead>
66
<tr>
7-
<td></td>
8-
<th scope="col">Column header 1</th>
7+
<th scope="col">Column header 1</th>
98
<th scope="col">Column header 2</th>
9+
<th scope="col">Column header 3</th>
1010
</tr>
1111
</thead>
1212
<tbody>

public/dist/assets/styles/core.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1939,9 +1939,13 @@ table caption {
19391939
}
19401940

19411941
th {
1942+
vertical-align: bottom;
1943+
}
1944+
1945+
thead th,
1946+
tfoot th {
19421947
background-color: #024488;
19431948
color: #fff;
1944-
vertical-align: bottom;
19451949
}
19461950

19471951
td {

public/dist/assets/styles/core.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)