Skip to content

Commit 484c89b

Browse files
committed
feat(brand): restore card borders in dark mode if brand makes dark mode
1 parent e05ab3d commit 484c89b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

shiny/ui/_theme_brand.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,14 @@ def __init__(
382382
font-weight: $code-block-font-weight;
383383
font-size: $code-block-font-size;
384384
}
385+
386+
@if variable-exists(brand--background) {
387+
// When brand makes dark mode, it usually hides card definition, so we add
388+
// back card borders in dark mode.
389+
[data-bs-theme="dark"] {
390+
--bslib-card-border-color: RGBA(255, 255, 255, 0.15);
391+
}
392+
}
385393
"""
386394
)
387395

0 commit comments

Comments
 (0)