fix tables in dark mode

This commit is contained in:
rachidatecs 2023-08-08 19:18:48 -04:00
parent 86acb6c24e
commit 904b826047
No known key found for this signature in database
GPG key ID: 3CEBBFA7325E5525

View file

@ -104,10 +104,10 @@ html[data-theme="light"] {
--close-button-hover-bg: #666666; --close-button-hover-bg: #666666;
} }
// Fix dark mode bug // Dark mode django (bug due to scss cascade) and USWDS tables
// The structure of our CSS messes with the cascade and causes some body copy in tables body,
//to have light mode colors in dark mode, resulting in a severe contrast issue. .usa-table,
body { .usa-table--striped tbody tr:nth-child(odd) td {
color: var(--body-fg)!important; color: var(--body-fg)!important;
} }
} }