diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/create/project/components/DopSettingDropdown.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/apps/create/project/components/DopSettingDropdown.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/create/project/components/DopSettingDropdown.tsx b/server/sonar-web/src/main/js/apps/create/project/components/DopSettingDropdown.tsx index 599318c0894..38a182477aa 100644 --- a/server/sonar-web/src/main/js/apps/create/project/components/DopSettingDropdown.tsx +++ b/server/sonar-web/src/main/js/apps/create/project/components/DopSettingDropdown.tsx @@ -37,6 +37,10 @@ export interface DopSettingDropdownProps { const MIN_SIZE_INSTANCES = 2; function optionRenderer(props: OptionProps<LabelValueSelectOption<DopSetting>, false>) { + // For tests and a11y + props.innerProps.role = 'option'; + props.innerProps['aria-selected'] = props.isSelected; + return <components.Option {...props}>{customOptions(props.data.value)}</components.Option>; } |