Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accordian active_header_background is not being set in dark theme #7575

Open
TheGoldenPatrik1 opened this issue Dec 26, 2024 · 1 comment · May be fixed by #7576
Open

Accordian active_header_background is not being set in dark theme #7575

TheGoldenPatrik1 opened this issue Dec 26, 2024 · 1 comment · May be fixed by #7576

Comments

@TheGoldenPatrik1
Copy link

Software Version Info
Python: v3.10
Panel: v1.5.5
OS: macOS Sequoia 15.1.1
Browser: both Google Chrome and Firefox

Description

When using the dark theme, the active_header_background property is not being set for the Accordion component. It remains the default #ddd color defined here. This applies regardless of the design used - I tried material, bootstrap, and native; all of them had the same issue.

As a result of this issue, the Accordion background has an unreadable light color when opened, even though the different themes set the active_header_background property to a CSS variable (for instance, here).

Example code to reproduce

import panel as pn

pn.extension(theme="dark")

pn.Accordion(
    ("Test Accordion", pn.pane.Markdown("Test Content"))
).servable()

Browser inspect element

Image

Screenshots

Closed


Image

Opened


Image
@ahuang11
Copy link
Contributor

Thanks for reporting! I think #7576 should fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants