TJ VanToll
Member since Mar 21, 2014
- Profile: /members/11712-tj-vantoll.htm
- URL: http://tjvantoll.com
- Comments: 3
Recent Blog Comments By TJ VanToll
-
Using Transparent Select Menus To Create Styled Menu Roots
Posted on Mar 21, 2014 at 10:47 AM
@Ben Elements with display: none applied are invisible to screen readers. To hide elements from sighted users and keep them accessible to assistive technologies, you need a replacement technique such as http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement/. Screen re... read more »
-
Using Transparent Select Menus To Create Styled Menu Roots
Posted on Mar 21, 2014 at 9:21 AM
Actually I was able to get the focus styling to work without any JS: http://jsbin.com/lolup/4/edit. That seems to work pretty well on VoiceOver on OS X as well.... read more »
-
Using Transparent Select Menus To Create Styled Menu Roots
Posted on Mar 21, 2014 at 9:14 AM
fyi from an a11y perspective there are a number of problems with this approach. This menu is invisible to a screen reader and cannot be accessed by the keyboard. You can get most of the way by using a <label> element with a tabindex="0" attribute. This allows the label to re... read more »