Replies: 1 comment
-
Good question. Mainly it's adapting the principles of regular html-attributes, and that for the difference in between somehow "meaningless" classes, whereas an attribute enables you to provide a "schema" and "exclusive" values. I've even also read an article some time ago and will add it as well. see also:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What is your motivation for using data attributes for styling with CSS?
Link: https://db-ui.github.io/mono/review/main/components/button/overview
vs
Beta Was this translation helpful? Give feedback.
All reactions