Skip to content

Commit

Permalink
fix: Apply dark mode to page-level scrollbars in Chrome (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
jperals authored Jan 8, 2025
1 parent 236c167 commit 8010fe7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,9 @@
.awsui-dark-mode {
color-scheme: dark;
}

/* This is necessary for Chrome to apply dark mode to page-level scrollbars */
html:has(body.awsui-dark-mode) {
color-scheme: dark;
}
}

0 comments on commit 8010fe7

Please sign in to comment.