Skip to content

Conversation

@kdkasad
Copy link
Contributor

@kdkasad kdkasad commented Mar 18, 2021

If the site's theme is set to auto, CSS media queries will be used to set the dark theme based on the user's browser preferences when JavaScript is disabled. No change happens if JavaScript is enabled.

Only applies if the user has disabled JS and the 'theme' configuration
parameter is set to 'auto' or is unset.
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@adityatelange adityatelange merged commit e01b521 into adityatelange:master Mar 19, 2021
@adityatelange adityatelange added the enhancement New feature or improvement label Mar 27, 2021
kylethedeveloper pushed a commit to kylethedeveloper/hugo-PaperMod that referenced this pull request Feb 21, 2023
… theme (adityatelange#308)

- Makes auto theme work when JS is disabled
- Only applies if the 'theme' configuration parameter is set to 'auto' or is unset.
kylethedeveloper pushed a commit to kylethedeveloper/hugo-PaperMod that referenced this pull request Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or improvement

2 participants