@@ -179,8 +179,12 @@ export const SelectInputSettingsPanel: React.FC<ISelectInputSettingsPanelProps>
179179 ) ) }
180180
181181 < div className = "add-option-form" >
182+ < label htmlFor = "addOptionInput" className = "visually-hidden" >
183+ Option name
184+ </ label >
182185 < input
183186 type = "text"
187+ id = "addOptionInput"
184188 value = { newOption }
185189 onChange = { ( e ) => setNewOption ( e . target . value ) }
186190 onKeyDown = { ( e ) => {
@@ -190,6 +194,7 @@ export const SelectInputSettingsPanel: React.FC<ISelectInputSettingsPanelProps>
190194 }
191195 } }
192196 placeholder = { getLocString ( 'addOptionPlaceholder' , 'Add option...' ) }
197+ aria-label = "Option name"
193198 />
194199 < button type = "button" onClick = { handleAddOption } >
195200 { getLocString ( 'addButton' , 'Add' ) }
@@ -218,13 +223,20 @@ export const SelectInputSettingsPanel: React.FC<ISelectInputSettingsPanelProps>
218223 </ div >
219224
220225 { settings . selectType === 'from-variable' && (
221- < input
222- type = "text"
223- className = "variable-input"
224- value = { settings . selectedVariable }
225- onChange = { handleVariableChange }
226- placeholder = { getLocString ( 'variablePlaceholder' , 'Variable name...' ) }
227- />
226+ < >
227+ < label htmlFor = "variableNameInput" className = "visually-hidden" >
228+ Variable name
229+ </ label >
230+ < input
231+ type = "text"
232+ id = "variableNameInput"
233+ className = "variable-input"
234+ value = { settings . selectedVariable }
235+ onChange = { handleVariableChange }
236+ placeholder = { getLocString ( 'variablePlaceholder' , 'Variable name...' ) }
237+ aria-label = "Variable name"
238+ />
239+ </ >
228240 ) }
229241 </ div >
230242 </ label >
0 commit comments