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

Dropdowns have broken ARIA labelledby #11572

Closed
3 tasks done
silenceway opened this issue Nov 1, 2018 · 1 comment · Fixed by #11573
Closed
3 tasks done

Dropdowns have broken ARIA labelledby #11572

silenceway opened this issue Nov 1, 2018 · 1 comment · Fixed by #11573

Comments

@silenceway
Copy link

silenceway commented Nov 1, 2018

What should happen?

aria-labelledby must point to label in dropdowns.

What happens instead?

It's creating labelledby attribute but without point to the label.

Possible Solution

Add id to this.$currentAnchor when created with GetYoDigits function.

Test Case and/or Steps to Reproduce (for bugs)

Go to https://foundation.zurb.com/sites/docs/dropdown.html
Inspect dropdowns, they have aria-labelledby attribute but buttons doesn't have this id.

Your Environment

Affects current foundation version 6.5

Checklist

  • I have read and follow the CONTRIBUTING.md document.
  • There are no other issues similar to this one.
  • The issue title and template are correctly filled.
@ncoden
Copy link
Contributor

ncoden commented Nov 1, 2018

See #11573

@ncoden ncoden added this to the 6.5.1 milestone Nov 1, 2018
ncoden added a commit that referenced this issue Nov 2, 2018
fix: ensure Dropdown aria-labelledby to have an ID #11572
ncoden added a commit that referenced this issue Nov 12, 2018
…2 for v6.5.0

5ddb04b fix: ensure Dropdown aria-labelledby to have an ID #11572
adce391 fix: revert inadvertent substitution of Dropdown "aria-labelledby" attribute

Signed-off-by: Nicolas Coden <nicolas@ncoden.fr>
ncoden added a commit to ncoden/foundation-sites that referenced this issue Nov 12, 2018
…ng-id-11572 for v6.5.1

5ddb04b fix: ensure Dropdown aria-labelledby to have an ID foundation#11572
adce391 fix: revert inadvertent substitution of Dropdown "aria-labelledby" attribute

Signed-off-by: Nicolas Coden <nicolas@ncoden.fr>
@ncoden ncoden mentioned this issue Nov 12, 2018
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants