From 1faedb3c284c8c2638a48edf2950039b721af4bb Mon Sep 17 00:00:00 2001 From: Andrew Huang Date: Thu, 26 Dec 2024 10:06:03 -0800 Subject: [PATCH 1/2] fix accordion theme --- panel/layout/accordion.py | 2 +- panel/layout/card.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/panel/layout/accordion.py b/panel/layout/accordion.py index f48e193a6d..ec3b273d48 100644 --- a/panel/layout/accordion.py +++ b/panel/layout/accordion.py @@ -36,7 +36,7 @@ class Accordion(NamedListPanel): >>> pn.Accordion(some_pane_with_a_name, ("Plot", some_plot)) """ - active_header_background = param.String(default='#ddd', doc=""" + active_header_background = param.String(default=None, doc=""" Color for currently active headers.""") active = param.List(default=[], doc=""" diff --git a/panel/layout/card.py b/panel/layout/card.py index 02d690222f..3111885bc3 100644 --- a/panel/layout/card.py +++ b/panel/layout/card.py @@ -29,7 +29,7 @@ class Card(Column): ... ) """ - active_header_background = param.String(doc=""" + active_header_background = param.String(default=None, doc=""" A valid CSS color for the header background when not collapsed.""") button_css_classes = param.List(default=['card-button'], doc=""" From 3c52e24ed6035bb8904bdae6563df353e678e178 Mon Sep 17 00:00:00 2001 From: Andrew Huang Date: Tue, 7 Jan 2025 15:14:12 -0800 Subject: [PATCH 2/2] fix icon --- panel/dist/css/listpanel.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/panel/dist/css/listpanel.css b/panel/dist/css/listpanel.css index af76ff90ec..b77a6a2302 100644 --- a/panel/dist/css/listpanel.css +++ b/panel/dist/css/listpanel.css @@ -61,3 +61,7 @@ margin-top: 10px; filter: invert(); } + +.card-button > svg { + stroke: var(--background-text-color); +}