Skip to content

Commit

Permalink
NBNP-127 Add required indicator+ARIA to fulltext search label
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmcd75 committed Aug 19, 2024
1 parent 8627330 commit 125c544
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom/modules/newspapers_core/src/Form/HomePageForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,8 @@ class="fa-solid fa-circle-question ml-1"></span>')), $about_url
];
$form['panel-wrapper']['tab-content']['fulltext']['search']['input_fulltext'] = [
'#type' => 'search',
'#title' => $this->t('Search within our scanned newspaper content <span class="visually-hidden">required</span>'),
'#title' => $this->t('Search within our scanned newspaper content
<strong class="text-danger" aria-label="required">*</strong>'),
'#description' => '<span class="mr-1">' .
$this->t('Find 1 or more terms within the fulltext of our digitized newspaper pages') .
'</span>',
Expand Down

0 comments on commit 125c544

Please sign in to comment.