Closed gadenbuie closed 1 month ago
We fall back to prefers-color-scheme but we should account for the document element having data-bs-theme set already, in which case we'd use that value over prefers-color-scheme.
prefers-color-scheme
data-bs-theme
https://github.com/rstudio/bslib/blob/7ff88a1e2a88fc7c6289059dd247ce88512f8231/srcts/src/components/webcomponents/inputDarkMode.ts#L223-L229
We fall back to
prefers-color-scheme
but we should account for the document element havingdata-bs-theme
set already, in which case we'd use that value overprefers-color-scheme
.https://github.com/rstudio/bslib/blob/7ff88a1e2a88fc7c6289059dd247ce88512f8231/srcts/src/components/webcomponents/inputDarkMode.ts#L223-L229