DrewDahlman / Mason

Mason.js for creating a perfect grid with jQuery.
http://masonjs.com/
MIT License
1.22k stars 183 forks source link

Fillers should be hidden to people using screenreaders #60

Open neoncitylights opened 8 years ago

neoncitylights commented 8 years ago

The fillers simply have no content and are for simple aesthetic purposes: filling in empty spaces and show as white/transparent rectangles. For this reason, they should automatically have aria-hidden="true" added to these elements so the MasonJS grid system is more accessible. :)

DrewDahlman commented 8 years ago

This is the case with the examples but the intended use of fillers would have content in them. Many people use the filler objects as spare objects and they are placed into the grid as actual content pieces. Appreciate the input though - maybe there is something that could be done to detect if there isn't any content, but I worry that may be a bit too heavy handed.

julien-gargot commented 8 years ago

Out of subject, but maybe useful to know and a little bit related to screen-readers’ question: if you do not want any fillers in your HTML to simply play around with the grid, it seems that we can use an empty filler option :

filler: {}

;)