?
avatar zwiastunsw
zwiastunsw
4 Apr 2019

Steps to reproduce the issue

  1. Use screen reader, e.g. NVDA
  2. Go to the search results list page (for ex. use search module to search for a popular word, e.g. joomla on a test site)
  3. Go to serach field
    or
    Inspect the code

searchj4

Expected result

  • The screen reader should announce a label for the search box

or

  • The code should include a label for the field "Search" (label for="search-searchword"

Actual result

Screen reader does not announce the name of the field
The field has no labels.

avatar zwiastunsw zwiastunsw - open - 4 Apr 2019
avatar joomla-cms-bot joomla-cms-bot - change - 4 Apr 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 4 Apr 2019
avatar joomla-cms-bot joomla-cms-bot - edited - 4 Apr 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Apr 2019
Title
[4.0][a11y] Search form has no label
[4.0] [a11y] Search form has no label
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Apr 2019
Category Accessibility com_search
avatar brianteeman
brianteeman - comment - 4 Apr 2019

Is this on the front end?

If so is this Search or Smart Search?

avatar zwiastunsw
zwiastunsw - comment - 4 Apr 2019

On frontend. Only Search. In Smart Search label exist.

avatar brianteeman
brianteeman - comment - 4 Apr 2019

@wilsonge it is present for smart search but the markup is wrong
it says label for q where q is the name.
it should say label for q where q is the id

I will work on both of these shortly on the train

avatar zwiastunsw
zwiastunsw - comment - 4 Apr 2019

it says label for q where q is the name.
it should say label for q where q is the id

I agree!

avatar wilsonge
wilsonge - comment - 4 Apr 2019

I'm blind. Please carry on ;)

avatar zwiastunsw
zwiastunsw - comment - 4 Apr 2019

add id="q" into:
<input type="text" name="q"
The value of the for attribute must be the input ID value, not name

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 4 Apr 2019

closed as having Pull Request #24477

avatar franz-wohlkoenig franz-wohlkoenig - close - 4 Apr 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Apr 2019
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2019-04-04 11:24:11
Closed_By franz-wohlkoenig

Add a Comment

Login with GitHub to post a comment