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

Make collapse/display templates work in dark mode #216

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

BryceStevenWilley
Copy link
Contributor

In dark mode, the display templates still have a light background, causing contrast issues with the text inside, and in general stands out far too much against the page background. This adds CSS to change the bg-light class for the collapse and display templates to the dark-mode colors when data-bs-theme=dark.

See jhpyle/docassemble#718 for a discussion on a suggested fix for a similar issue, which resulted in the suggested workaround here.

An image of the dark mode display template without this PR:

Screenshot from 2023-12-04 18-46-26

An image of the dark mode display template with this PR:

Screenshot from 2023-12-04 18-45-29

In dark mode, the display templates still have a light background, and stand
out far too much. This adds CSS to change the `bg-light` class for the collapse
and display templates to the dark-mode colors when `data-bs-theme=dark`.

See jhpyle/docassemble#718 for a discussion on a
suggested fix for a similar issue, which resulted in the suggested workaround
here.
Copy link
Member

@nonprofittechy nonprofittechy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Lgtm

@BryceStevenWilley BryceStevenWilley merged commit cb68fa8 into main Dec 5, 2023
4 checks passed
@BryceStevenWilley BryceStevenWilley deleted the darkmode_disp_templates branch December 5, 2023 02:18
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 this pull request may close these issues.

2 participants