-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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(toolbar): add anchor element to interactive elements #10343
Conversation
🦋 Changeset detectedLatest commit: 16537ef The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
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.
LGTM, just needs a changeset! You can add a test in e2e/dev-toolbar-audits.test.js
if you want to, but I'm totally okay with not having one right now. We can make a full test suite for audits later
Following the discussion from earlier today, I opened #10346. According to this MDN reference, an anchor element is only considered interactive content if it has an
If my understanding is correct, the rules should check for the presence of the |
Ah yeah, the optimal solution would be to check in the |
55243a2
to
77fa630
Compare
Changeset added. I suppose we can create the helper in another PR? |
Well it's not just the helper, the behaviour in this PR is incorrect since a |
All right, I'll add the logic tomorrow |
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.
Seems fine!
Changes
This PR adds
a
to the list of element that can be interactive.Interactive elements are usually marked with the
"widget"
role.link
role is acommand
role, which is a superclass that includes"widget"
.Testing
I am happy to add a test with some guidance
Docs
N/A