Please use the class "element-invisible" instead of hiding the label to improve the usability for screenreaders:
Change form_placeholder.js at line 57
if (!$textfield.attr('placeholder')) {
$textfield.attr('placeholder', $.trim($label.text()));
- $label.hide();
+ $label.addClass('element-invisible');
}
// Fallback support for older browsers.(Sorry – i'm not yet able to create a real working patch …)
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | use_class-2779605-5.patch | 420 bytes | rafalenden |
Comments
Comment #3
rafalenden commentedThanks tfranz!
Comment #4
rafalenden commentedWe need to port it to D8 version.
Comment #5
rafalenden commentedComment #7
rafalenden commented