File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
packages/ui-select/src/Select Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -697,10 +697,15 @@ class Select extends Component<SelectProps> {
697697 // popup buttons rather than comboboxes.
698698 const overrideProps : Partial < TextInputProps > = ! isEditable
699699 ? {
700- // Given that Safari with Voiceover does not support proper combobox
701- // handling, a button role is set as a workaround.
700+ // We need role="combobox" for the 'open list' button shortcut to work
701+ // with desktop screenreaders.
702+ // But desktop Safari with Voiceover does not support proper combobox
703+ // handling, a 'button' role is set as a workaround.
702704 // See https://bugs.webkit.org/show_bug.cgi?id=236881
703- role : utils . isSafari ( ) ? 'button' : 'combobox' ,
705+ // Also on iOS Chrome with role='combobox' it announces unnecessarily
706+ // that its 'read-only' and that this is a 'textfield', see INSTUI-4500
707+ role :
708+ utils . isSafari ( ) || utils . isAndroidOrIOS ( ) ? 'button' : 'combobox' ,
704709 title : inputValue ,
705710 'aria-autocomplete' : undefined ,
706711 'aria-readonly' : true
You can’t perform that action at this time.
0 commit comments