Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The input text field in the biblio search form (id="edit-keys") does not have a label element associated with it, so it fails WCAG 2.0 testing. To fix this, I made a change in biblio.pages.inc at line 791-196, to add a value to the #title attribute, which the Drupal forms API then uses to create a label for the field. To have this label hidden, I added a line to biblio.css.
Is this the best way?
Patches are attached.
Comment | File | Size | Author |
---|---|---|---|
biblio.css_.patch | 349 bytes | aalm | |
biblio.pages_.inc_.patch | 99.3 KB | aalm | |
Comments
Comment #1
mgiffordThis doesn't look like a good patch. Should only be a few lines long.
https://drupal.org/node/707484
Also good to use git https://drupal.org/project/biblio/git-instructions and be clear which branch you are using if there are more than one.
Thanks for pointing out the missing label. It's usually an easy fix.
Comment #2
Liam MorlandThis version is no longer maintained. If this issue is still relevant to the Drupal 7 version, please re-open and provide details.