-
Notifications
You must be signed in to change notification settings - Fork 28.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terminal:SelectBox: Terminal select box should have main ARIA label #60724
Comments
@cleidigh what would this proposed change do exactly? Also does it impact elsewhere the dropdown is used? |
@Tyriar this.selectBox = new SelectBox([], -1, contextViewService, null, { ariaLabel: nls.localize('debugLaunchConfigurations', 'Debug Launch Configurations') }); I'm trying to get all the drop downs with main labels and if possible with the correct role. The change is just on the terminal client side. I'm going to do the same thing for the output dropdown |
@cleidigh sounds good 👍 |
@Tyriar , Can i work on this ? |
@skprabhanjan I think @cleidigh was going to work on this one. He's very familiar with this component. |
@skprabhanjan
But I can help you through the process on @Tyriar 's behalf. debugActionItems.ts (around line 40 - sorry I can't select code easily in github) @IThemeService private themeService: IThemeService,
@IConfigurationService private configurationService: IConfigurationService,
@ICommandService private commandService: ICommandService,
@IWorkspaceContextService private contextService: IWorkspaceContextService,
@IContextViewService contextViewService: IContextViewService,
) {
this.toDispose = [];
this.selectBox = new SelectBox([], -1, contextViewService, null, { ariaLabel: nls.localize('debugLaunchConfigurations', 'Debug Launch Configurations') });
this.toDispose.push(this.selectBox);
this.toDispose.push(attachSelectBoxStyler(this.selectBox, themeService, {
selectBackground: SIDE_BAR_BACKGROUND
}));
this.registerListeners();
} The selectBox, selectBoxCustom files contain the drop-down code (for reference these are not needed to be touched) |
@cleidigh , Thanks for the reply, I have set up my dev environment already :) |
@skprabhanjan
Cheers export class SelectActionItem extends BaseActionItem {
protected selectBox: SelectBox;
constructor(ctx: any, action: IAction, options: string[], selected: number, contextViewProvider: IContextViewProvider, selectBoxOptions?: ISelectBoxOptions) {
super(ctx, action);
this.selectBox = new SelectBox(options, selected, contextViewProvider, null, selectBoxOptions);
this._register(this.selectBox);
this.registerListeners();
} |
"Open Terminals" sounds good to me. |
FYI I cannot build anything so I'm kind of down and out, cannot post the fix for Electron or anything else... |
@cleidigh , sorry I thought debugActionItems had to be changed and hence the confusion. |
@skprabhanjan I think "Open Terminals." will be a better label. So you can go ahead and edit the label in terminalActions.ts around line 734 super(null, action, terminalService.getTabLabels(), terminalService.activeTabIndex, contextViewService, { ariaLabel: nls.localize('terminals', 'Terminals') }); |
@skprabhanjan |
Noticed that VoiceOver doesn't read the ARIA label when just tabbing through. Verified the label is there. |
@chrmarti |
@Tyriar
Since accessibility with terminal is a focus of October, would you like me to go ahead and add this?
The text was updated successfully, but these errors were encountered: