Skip to content

Commit

Permalink
Use blank role for custom selectbox on macOS
Browse files Browse the repository at this point in the history
Acts as a workaround for and fixes #180115
  • Loading branch information
rzhao271 committed May 25, 2023
1 parent cc77912 commit 8a5a517
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/base/browser/ui/selectBox/selectBoxCustom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
});
Expand Down

0 comments on commit 8a5a517

Please sign in to comment.