Skip to content

Commit ebf8518

Browse files
committed
aria for inputs
1 parent a035cd8 commit ebf8518

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/webviews/webview-side/selectInputSettings/SelectInputSettingsPanel.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,9 @@ export const SelectInputSettingsPanel: React.FC<ISelectInputSettingsPanelProps>
142142
handleSelectTypeChange('from-options');
143143
}
144144
}}
145-
role="button"
145+
role="radio"
146146
tabIndex={0}
147+
aria-checked={settings.selectType === 'from-options'}
147148
>
148149
<input
149150
type="radio"
@@ -214,8 +215,9 @@ export const SelectInputSettingsPanel: React.FC<ISelectInputSettingsPanelProps>
214215
handleSelectTypeChange('from-variable');
215216
}
216217
}}
217-
role="button"
218+
role="radio"
218219
tabIndex={0}
220+
aria-checked={settings.selectType === 'from-variable'}
219221
>
220222
<input
221223
type="radio"

0 commit comments

Comments
 (0)