In Drupal 8 some content is being visually hidden (and exposed to screen reader users) using the "visually-hidden" class, which is styled as follows in system.module.css:
clip: rect(1px, 1px, 1px, 1px);
position: absolute !important;
This works as intended, with one exception:
width: 1px causes major problems in Firefox if the hidden content inherits
word-wrap:break-word. With this combination of properties, Firefox seems to eliminate all spaces from text before exposing the content to assistive technologies. Screen readers attempt to read the content without spaces which sounds like gobbledy-gook.
This problem has been observed in Firefox 22 using JAWS 14, Window-Eyes 7.5, NVDA 2013.1.1.
Here's a test page:
This is not a problem in Internet Explorer 10 or Chrome 28.
Remove width: 1px from the style definition for .visually-hidden.
In Drupal 7, there was a similar class "element-invisible" defined in system.base.css which did not include a
width property. Otherwise Drupal 7's "element-invisible" class was identical to Drupal 8's "visually-hidden" class. The symptoms of this problem have not been observed in Drupal 7.
|#15||Screen Shot 2013-07-21 at 9.15.56 PM.png||170.39 KB||mparker17|
|PASSED: [[SimpleTest]]: [MySQL] 57,152 pass(es). |
[ View ]
|PASSED: [[SimpleTest]]: [MySQL] 57,178 pass(es). |
[ View ]