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

data-toggle #142

Open
matthewp opened this issue Jul 8, 2022 · 0 comments
Open

data-toggle #142

matthewp opened this issue Jul 8, 2022 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@matthewp
Copy link
Owner

matthewp commented Jul 8, 2022

Similar to attr-toggle, removes the attribute when the value is false.

#app {
  data-value: theme dark;
  data-toggle: theme true;
}

#app:not(.dark-mode) {
  data-toggle: theme false;
}
@matthewp matthewp added the enhancement New feature or request label Jul 24, 2022
@matthewp matthewp added this to the Next milestone Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant