or
Screen reader does not announce the name of the field
The field has no labels.
Labels |
Added:
?
|
Status | New | ⇒ | Information Required |
Category | ⇒ | Accessibility com_search |
@zwiastunsw
id="q"
is already there in
<input type="text" name="q"
then why the issue still persists?
I don't understand. You show a piece of code, but you don't write where it comes from.
This is piece of from "com_search/views/search/tmpl/default_form.php":
<div class="btn-group pull-left">
<input type="text" name="searchword" title="<?php echo JText::_('COM_SEARCH_SEARCH_KEYWORD'); ?>" placeholder="<?php echo JText::_('COM_SEARCH_SEARCH_KEYWORD'); ?>" id="search-searchword" size="30" maxlength="<?php echo $upper_limit; ?>" value="<?php echo $this->escape($this->origkeyword); ?>" class="inputbox" />
</div>
In this code there is no label for="search-searchword"
The label may be hidden for sighted users, but it must exist for users of screen readers. To hide the label from sighted users, use the class="element-invisible"
for label
tag.
My bad
I missed out giving the file name
Really sorry
Title |
|
Status | Information Required | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-04-04 12:40:47 |
Closed_By | ⇒ | franz-wohlkoenig |
Working on it