Skip to content

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

Merged
merged 3 commits into from
Apr 29, 2020

Conversation

ivoplashkov
Copy link
Member

@ivoplashkov ivoplashkov commented Apr 28, 2020

FIXES:#1278

Copy link
Contributor

@vladitasev vladitasev left a 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

@@ -490,6 +493,32 @@ class ComboBox extends UI5Element {
return !this.readonly;
}

get accInfo() {
return {
"role": "combobox",
Copy link
Contributor

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.

Copy link
Member Author

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"
Copy link
Contributor

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

Copy link
Contributor

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

@vladitasev vladitasev merged commit 3d56b4d into SAP:master Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants