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(landmark-complementary-is-top-level): allow aside inside main #2740

Merged
merged 3 commits into from
Jan 11, 2021

Conversation

straker
Copy link
Contributor

@straker straker commented Jan 7, 2021

Closes issue: #2651

@straker straker requested a review from a team as a code owner January 7, 2021 21:31
WilcoFiers
WilcoFiers previously approved these changes Jan 8, 2021
@@ -5,17 +5,22 @@ import { getComposedParent } from '../../commons/dom';
function landmarkIsTopLevelEvaluate(node) {
var landmarks = getAriaRolesByType('landmark');
var parent = getComposedParent(node);
var nodeRole = node.getAttribute('role') || implicitRole(node);
Copy link
Contributor

Choose a reason for hiding this comment

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

If we're going to mess with this, why not use aria.getRole?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wondered that myself but didn't know if there was a specific reason why we didn't before.

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.

2 participants