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

propagate dark/light theme to algolia search bar #5231

Merged
merged 4 commits into from
Apr 14, 2024

Conversation

cosmicBboy
Copy link
Contributor

Why are the changes needed?

Currently, the algolia search bar maintains the light theme even when dark mode is toggled:
image

What changes were proposed in this pull request?

This PR propogates the data-theme="light/dark/auto" setting that the furo sphinx theme handles from the body element to the root html element.

How was this patch tested?

Built the docs locally with make docs

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. documentation Improvements or additions to documentation enhancement New feature or request labels Apr 14, 2024
pingsutw
pingsutw previously approved these changes Apr 14, 2024
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Apr 14, 2024
@cosmicBboy
Copy link
Contributor Author

@pingsutw another +1 please!

Signed-off-by: cosmicBboy <[email protected]>
Signed-off-by: cosmicBboy <[email protected]>
@cosmicBboy cosmicBboy merged commit 7287470 into master Apr 14, 2024
46 checks passed
@cosmicBboy cosmicBboy deleted the algolia-searchbar-theme branch April 14, 2024 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants