Skip to content

Commit

Permalink
Fix Accordian active_header_background in dark theme (#7576)
Browse files Browse the repository at this point in the history
* fix accordion theme

* fix icon
  • Loading branch information
ahuang11 authored Jan 8, 2025
1 parent 57a6714 commit 2c2a2eb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions panel/dist/css/listpanel.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,7 @@
margin-top: 10px;
filter: invert();
}

.card-button > svg {
stroke: var(--background-text-color);
}
2 changes: 1 addition & 1 deletion panel/layout/accordion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="""
Expand Down
2 changes: 1 addition & 1 deletion panel/layout/card.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="""
Expand Down

0 comments on commit 2c2a2eb

Please sign in to comment.