DEV Community

Discussion on: CSS: bad parts

Collapse
 
scrabill profile image
Shannon Crabill • Edited

Interesting take on not using margins. I wonder how having spacer components are for bloat, accessibility and maintaining code.

Collapse
 
stereobooster profile image
stereobooster • Edited

I wonder how having spacer components are for bloat, accessibility and maintaining code.

I can't say anything about bloat and maintaining code. But accessibility will be fine, it is empty element invisible to screen reader the same way as margin 🤷‍♀️