Fix table header contract in dark mode

This commit is contained in:
rachidatecs 2023-08-14 11:35:42 -04:00
parent b156c86aef
commit ec7f70e8ae
No known key found for this signature in database
GPG key ID: 3CEBBFA7325E5525

View file

@ -106,16 +106,22 @@ html[data-theme="light"] {
// Dark mode django (bug due to scss cascade) and USWDS tables
.change-list .usa-table,
.change-list .usa-table--striped tbody tr:nth-child(odd) td {
color: var(--body-fg)!important;
.change-list .usa-table--striped tbody tr:nth-child(odd) td,
.change-list .usa-table--borderless thead th,
.change-list .usa-table thead td,
.change-list .usa-table thead th {
color: var(--body-fg);
}
}
// Firefox needs this to be specifically set
html[data-theme="dark"] {
.change-list .usa-table,
.change-list .usa-table--striped tbody tr:nth-child(odd) td {
color: var(--body-fg)!important;
.change-list .usa-table--striped tbody tr:nth-child(odd) td,
.change-list .usa-table--borderless thead th,
.change-list .usa-table thead td,
.change-list .usa-table thead th {
color: var(--body-fg);
}
}