Use blank role for custom selectbox on macOS (#183460)

Acts as a workaround for and fixes #180115
This commit is contained in:
Raymond Zhao 2023-05-25 13:35:02 -07:00 committed by GitHub
parent 81bb68fed1
commit bc4edc5c00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -742,7 +742,7 @@ export class SelectBoxList extends Disposable implements ISelectBoxDelegate, ILi
return label;
},
getWidgetAriaLabel: () => localize({ key: 'selectBox', comment: ['Behave like native select dropdown element.'] }, "Select Box"),
getRole: () => 'option',
getRole: () => isMacintosh ? '' : 'option',
getWidgetRole: () => 'listbox'
}
});