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

fix: add support for custom selectors like data-theme #63

Merged
merged 3 commits into from
Sep 15, 2023

Conversation

GavinXue
Copy link
Contributor

When update to version 0.9.1, the feature of controlling themes by using data-theme is no longer supported. You can refer to this repository demonstration for a better understanding: repository demo.

This PR introduces support for the following scenario.

selectors: {
  light: '[data-theme="light"]',
  dark: '[data-theme="dark"]',
},

@Dunqing
Copy link
Member

Dunqing commented Sep 15, 2023

Thanks!

@Dunqing Dunqing merged commit 36b77c6 into unpreset:main Sep 15, 2023
3 checks passed
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.

None yet

2 participants