@hexagoncircle Thank you for sharing! I’m wondering why you used data attributes for your custom elements. Since they’re already custom, you’re free to choose any custom attributes as well. At least, that’s my way of thinking usually.
Top-level
@hexagoncircle Thank you for sharing! I’m wondering why you used data attributes for your custom elements. Since they’re already custom, you’re free to choose any custom attributes as well. At least, that’s my way of thinking usually. 1 comment
|
@pepelsbey Yeah, good callout! There are a few reasons influencing my decision to prefix with `data-` that @scottjehl outlines in this post: https://mstdn.social/@scottjehl/112683652121687059