Skip to content

Commit d77cf17

Browse files
authored
fallback to label for aria label when tooltip isn't provided (#286843)
fixes #285527
1 parent 8fdbf92 commit d77cf17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/platform/actions/browser/menuEntryActionViewItem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ class SubmenuEntrySelectActionViewItem extends SelectActionViewItem {
584584
@IContextViewService contextViewService: IContextViewService,
585585
@IConfigurationService configurationService: IConfigurationService,
586586
) {
587-
super(null, action, action.actions.map(a => (a.id === Separator.ID ? SeparatorSelectOption : { text: a.label, isDisabled: !a.enabled, })), 0, contextViewService, defaultSelectBoxStyles, { ariaLabel: action.tooltip, optionsAsChildren: true, useCustomDrawn: !hasNativeContextMenu(configurationService) });
587+
super(null, action, action.actions.map(a => (a.id === Separator.ID ? SeparatorSelectOption : { text: a.label, isDisabled: !a.enabled, })), 0, contextViewService, defaultSelectBoxStyles, { ariaLabel: action.tooltip || action.label, optionsAsChildren: true, useCustomDrawn: !hasNativeContextMenu(configurationService) });
588588
this.select(Math.max(0, action.actions.findIndex(a => a.checked)));
589589
}
590590

0 commit comments

Comments
 (0)