eea / eea.facetednavigation

Faceted Navigation for Plone Classic
http://eea.github.com/docs/eea.facetednavigation
20 stars 56 forks source link

<label> needed on <select> for Section 508 compliance #210

Open nutjob4life opened 4 years ago

nutjob4life commented 4 years ago

In the "Results per page" widget, the <select> generated does not have a matching <label> which is required by WCAG section 1.1.1 "Non-Text Content". This is being flagged in a Section 508 scan of a site that uses EEA Faceted Navigation.

In the generated HTML below, there is no <label> for the <select> with ID = c0:

<form action"." method="GET">
    <select class="faceted_select" name="c0" id="c0">
        <option value="0" title="0">0</option>
        <option selected="selected" value="20" title="20">20</option>
        <option value="40" title="40">40</option>
        …
    </select>
</form>

Yes, US Government websites have some pretty strict requirements 😰

avoinea commented 4 years ago

@nutjob4life Thank you for reporting this. A pull-request on the issue would be appreciated :wink: