mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 01:54:18 -08:00
Add aria labels to pass a11y
- update snapshot
This commit is contained in:
parent
6bd9d202dc
commit
4b4d4eef23
2 changed files with 10 additions and 2 deletions
|
@ -319,12 +319,15 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
|
|||
<input
|
||||
aria-describedby="combobox-messageType-assistive-hint"
|
||||
aria-expanded="false"
|
||||
aria-label="Select form type"
|
||||
aria-labelledby="Select form type"
|
||||
aria-owns="combobox-messageType-list"
|
||||
autocapitalize="off"
|
||||
autocomplete="off"
|
||||
class="usa-combo-box__input"
|
||||
data-testid="combo-box-input"
|
||||
role="combobox"
|
||||
title="Form Selector"
|
||||
type="text"
|
||||
value=""
|
||||
/>
|
||||
|
@ -362,7 +365,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
|
|||
</button>
|
||||
</span>
|
||||
<ul
|
||||
aria-labelledby="message-type-label"
|
||||
aria-labelledby="Form type options"
|
||||
class="usa-combo-box__list"
|
||||
data-testid="combo-box-option-list"
|
||||
hidden=""
|
||||
|
|
|
@ -56,9 +56,14 @@ const ContactPage = ({location}: IContactPageProps) => {
|
|||
<ComboBox
|
||||
id="messageType"
|
||||
name="messageType"
|
||||
inputProps={{
|
||||
'aria-labelledby': 'Select form type',
|
||||
'title': 'Form Selector',
|
||||
'aria-label': 'Select form type',
|
||||
}}
|
||||
options={messageTypes}
|
||||
onChange={(messageType) => onMessageTypeChange(messageType)}
|
||||
ulProps={{'aria-labelledby': 'message-type-label'}}
|
||||
ulProps={{'aria-labelledby': 'Form type options'}}
|
||||
/>
|
||||
|
||||
<IQContactForm messageType={messageType} />
|
||||
|
|
Loading…
Add table
Reference in a new issue