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 accessible markup on inactive facet links is missing a space between the link text and the accessible markup. So from the point of view of a screen reader, it will appear as something like "TextApply Text filter", with the first two words running together.
Comment | File | Size | Author |
---|---|---|---|
#2 | facetapi-accessible-markup-missing-space-1809040-2.patch | 812 bytes | David_Rothstein |
#1 | facetapi-accessible-markup-missing-space-1809040-1.patch | 529 bytes | David_Rothstein |
Comments
Comment #1
David_Rothstein CreditAttribution: David_Rothstein commentedHere is a patch.
Comment #2
David_Rothstein CreditAttribution: David_Rothstein commentedActually it seems like for active links there can be a missing space after the accessible markup instead.
So rather than trying to figure this out exactly, here's a new patch that just makes the accessible markup have spaces before and after, always. That way it will work regardless of what's around it. And as long as the spaces are part of the accessible markup (and invisible) they won't disrupt any layouts.
Comment #3
cpliakas CreditAttribution: cpliakas commentedHi David.
Thanks for the patch! Unfortunately I don't fully understand the implications of this, but I will take your word for it. As long as it doesn't change the layout, then your reasoning makes sense and I am happy to commit this patch. I would love to get some feedback from the Drupal accessibility wizards as well.
Thanks for the contribution!
Chris
Comment #4
cpliakas CreditAttribution: cpliakas commentedLooks great. UI stays the same, so I am happy to commit this.
Comment #5
cpliakas CreditAttribution: cpliakas commentedCommitted to all branched of Facet API.
Congrats on becoming the 34th code contributor to Facet API!
Comment #6.0
(not verified) CreditAttribution: commentedsmall typo fix