-
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
add aria-description support for selectbox #152251
Conversation
@@ -126,6 +126,10 @@ export class SelectBoxList extends Disposable implements ISelectBoxDelegate, ILi | |||
this.selectElement.setAttribute('aria-label', this.selectBoxOptions.ariaLabel); | |||
} | |||
|
|||
if (this.selectBoxOptions.ariaDescription) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably best to keep the check similar to the other ones
typeof this.selectBoxOptions.ariaDescription === 'string'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -35,6 +35,10 @@ export class SelectBoxNative extends Disposable implements ISelectBoxDelegate { | |||
this.selectElement.setAttribute('aria-label', this.selectBoxOptions.ariaLabel); | |||
} | |||
|
|||
if (this.selectBoxOptions.ariaDescription) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here - typeof this.selectBoxOptions.ariaDescription === 'string'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@alanrenmsft thanks for the PR. I think this makes sense, even though aria-description is not yet supported by all screen readers to my knowledge. |
add aria-description support for selectbox
while working on an accessibility issue for Azure Data Studio (a fork of vscode), we realized that this option is missing, thought it could be useful for VSCode too, so created this PR.