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

fix: ensure Dropdown aria-labelledby to have an ID #11572 #11573

Merged

Conversation

ncoden
Copy link
Contributor

@ncoden ncoden commented Nov 1, 2018

Closes #11572

Description

Currently, Dropdown generate a random id for aria-labelledby if it is not set to target the anchor. But the anchor id is never set.

This pull request fix this by setting the anchor id with the generated one if the anchor doens't have an ID already.

Closes #11572

Types of changes

  • Documentation
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (anything that would change an existing functionality)
  • Maintenance (refactor, code cleaning, development tools...)

Checklist

  • I have read and follow the CONTRIBUTING.md document.
  • The pull request title and template are correctly filled.
  • The pull request targets the right branch (develop or develop-v...).
  • My commits are correctly titled and contain all relevant information.
  • I have updated the documentation accordingly to my changes (if relevant).
  • I have added tests to cover my changes (if relevant).

@ncoden ncoden force-pushed the fix/dropdown-aria-missing-id-11572 branch from 6cd5944 to 5ddb04b Compare November 1, 2018 23:20
Copy link

@silenceway silenceway left a comment

Choose a reason for hiding this comment

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

Attribute name must be changed.

@ncoden
Copy link
Contributor Author

ncoden commented Nov 2, 2018

Note: I checked all others usages of GetYoDigits().

@ncoden ncoden added this to the 6.5.1 milestone Nov 2, 2018
@ncoden ncoden merged commit 3cb5646 into foundation:develop Nov 2, 2018
ncoden added a commit that referenced this pull request 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 <[email protected]>
ncoden added a commit to ncoden/foundation-sites that referenced this pull request 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 <[email protected]>
@ncoden ncoden mentioned this pull request Nov 12, 2018
11 tasks
@joeworkman
Copy link
Member

This pull request has been mentioned on Foundation Open Source Community. There might be relevant details there:

https://foundation.discourse.group/t/foundation-for-sites-v6-6-0-is-here-farout/30/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dropdowns have broken ARIA labelledby
3 participants