• Resolved R J

    (@tzzel)


    I am doing ADA compliance. The search bar you have can easily be improved with a couple of small fixes:

    class.wp-megamenu line 131
    Add some screen reader text to the search button via aria-label:
    $attributes .= ‘ target=”_blank” aria-label=”search button”‘;

    class.wp-megamenu line 376
    Add a label and an ID to the input, so it looks like this:
    <label for=”s”>Search</label><input type=”text” placeholder=”‘.__(“Enter search terms”,”wp-megamenu”).’…” name=”s” id=”s”>

    • This topic was modified 6 years, 6 months ago by R J.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Suggestion: ADA Compliant — Search Bar’ is closed to new replies.