-
Notifications
You must be signed in to change notification settings - Fork 273
feat(ui5-combobox): implement accessibility spec #1560
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
Conversation
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.
The only fundamental problem is aria-controls. You can't cross-link different shadow DOMs. The best you can do is set aria-controls on custom elements level. Hope that works at least to some extent
packages/main/src/ComboBox.js
Outdated
@@ -490,6 +493,32 @@ class ComboBox extends UI5Element { | |||
return !this.readonly; | |||
} | |||
|
|||
get accInfo() { | |||
return { | |||
"role": "combobox", |
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.
Are these overwritten from somewhere (maybe multicombobox?) If yes, it's fine, if not -please hardcode them in the template. No need for variable parts for static content.
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.
@@ -2,6 +2,7 @@ | |||
no-arrow | |||
content-only-on-desktop | |||
_disable-initial-focus | |||
id="{{_id}}-responsive-popover" |
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.
This is in a separate shadow DOM tree, won't work. You can't reference it from within the shadow tree of the main component
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.
You are right. We will remove the aria-controls
FIXES:#1278