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 menuAttributes
to fix Axe's 'aria-input-field-name' error
#591
Add menuAttributes
to fix Axe's 'aria-input-field-name' error
#591
Conversation
Thanks for this update @mchughbri (and your patience with us finding the time to review it 😬 ). The code update is looking good 🙌🏻 For the examples, it would be neat to update them now we have that new option. I think having an |
Thanks @romaricpascal Now updated examples and added test for the new |
@mchughbri Cheers for adding the tests and updating the examples, looks all neat to me! Seems our workflows have not started for some reason, though. Would you be able to run a quick force push on your branch to try and trigger them again, please? 😊 |
@romaricpascal now done thanks. |
Oh sorry for my unclear instructions, @mchughbri I meant a force push with a different commit hash to try and trigger whatever Github's do to relaunch the checks. I usually |
5bf8dde
to
29313fd
Compare
All done @romaricpascal thanks. |
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.
Cheers! Tests are all green. Just needs a second approval and it'll be good to merge 😊
Hey @romaricpascal just wondered if we were any closer to getting another approval on this? Thanks. |
@mchughbri Sorry for the second delay on this! Looking good, merged :) |
menuAttributes
to fix Axe's 'aria-input-field-name' error
Add the
menuAttributes
option to allow for attributes and their values to be added to themenu
part of the component.This fixes #361 as it allows for
aria-labelledby
to be set to theid
of the existing label which in turn allows the code to pass the AXE rule "aria-input-field-name" (ARIA input fields have an accessible name).No new tests have been added yet. While this PR adds the ability to add
aria-label
oraria-labelledby
, by default these are not set, and so the default examples on the demo pages will still not pass the aXe tests.What do you think we should do about this?
aria-label
value (But what would it say by default?)id
on thelabel
and usearia-labelledby
to associate the twoaria-label