Places It’s Tempting To Use Display: None; But Don’t

Places It’s Tempting To Use Display: None; But Don’t

You want to hide something on a page so:
hide {
display: none;
}
But wait! By applying that class to an element you’ve immediately made that content “inaccessible” by screen readers You’ve probably known this forever but still the poison apple sneaks into our code once in a while
I don’t want to re-hash all the specifics Your best bet is to read “Now You See Me” by Aaron Gustafson on A List Apart to get an understanding of this if you don’t already
One way…..




View Post
0saves

Post Info