Skip to content
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

always render toolbar when in screen reader mode #183150

Merged
merged 4 commits into from May 22, 2023
Merged

Conversation

meganrogge
Copy link
Contributor

@meganrogge meganrogge commented May 22, 2023

Allows screen reader users to discover and navigate the toolbar via keyboard

fixes https://github.com/microsoft/vscode-internalbacklog/issues/4167

@meganrogge meganrogge self-assigned this May 22, 2023
@meganrogge meganrogge added this to the May 2023 milestone May 22, 2023
This reverts commit ebde1b6.
const toolbarElt = this.toolbar.getElement();
if (this._accessibilityService.isScreenReaderOptimized()) {
toolbarElt.style.display = 'block';
toolbarElt.ariaLabel = this._configurationService.getValue(AccessibilityVerbositySettingId.Chat) ? localize('chat.codeBlock.toolbarVerbose', 'Toolbar for code block which can be reached via tab') : localize('chat.codeBlock.toolbar', 'Code block toolbar');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to reset the aria label too?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That probably doesn't matter since they are not in screenreader mode

@meganrogge meganrogge merged commit 41766c0 into main May 22, 2023
5 of 6 checks passed
@meganrogge meganrogge deleted the merogge/chat-toolbar branch May 22, 2023 22:44
@github-actions github-actions bot locked and limited conversation to collaborators Jul 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants