DEV Community

Discussion on: Writing Logic in CSS

Collapse
 
roblevintennis profile image
Rob Levin

I thought of [aria-hidden] { ... } when I saw your [data-attr='true'] based logic examples. Suppose it's an option for any attribute really. Only issue with this is its very generalized on its own.

Collapse
 
iamschulz profile image
Daniel Schulz

How's providing generalized examples a drawback?

Collapse
 
roblevintennis profile image
Rob Levin

I meant that using [aria-hidden] alone or any data attribute is overly generalized. I was not intending to communicate that you providing generalized examples is a drawback; just that usage of it alone is generalized. Hope that clarifies misunderstanding. Thanks for the article.

Some comments have been hidden by the post's author - find out more