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(valid-lang): run on aria-hidden text #3634

Merged
merged 2 commits into from
Sep 7, 2022
Merged

Conversation

WilcoFiers
Copy link
Contributor

Closes issue: #3633

@WilcoFiers WilcoFiers marked this pull request as ready for review September 5, 2022 09:59
@WilcoFiers WilcoFiers requested a review from a team as a code owner September 5, 2022 09:59
'use strict';

var fixture = document.getElementById('fixture');
var shadowSupported = axe.testUtils.shadowSupport.v1;
var isHiddenWithCSSFn = axe.commons.dom.isHiddenWithCSS;
var isHiddenWithCSS = axe.commons.dom.isHiddenWithCSS;
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 have no idea why we did this, but I thought it should be changed.

@@ -3,7 +3,7 @@ import getImplicitRole from './implicit-role';
import getRoleType from './get-role-type';
import isAriaRoleAllowedOnElement from './is-aria-role-allowed-on-element';
import { tokenList, isHtmlElement, getNodeFromTree } from '../../core/utils';
import AbstractVirtuaNode from '../../core/base/virtual-node/abstract-virtual-node';
import AbstractVirtualNode from '../../core/base/virtual-node/abstract-virtual-node';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unrelated, but I spotted this typo. Figured I might as well fix it.

@@ -10,11 +10,17 @@
<p xml:lang="en-US" lang="gibberish-US" id="fail3">Mix</p>
<p lang=" " id="fail4">English</p>

<p lang="invalid" id="pass7"> <!-- ignore --> </p>
<p lang="invalid" id="pass7"><!-- ignore --></p>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, wonder why prettier did that.... Not sure it matters?

straker
straker previously requested changes Sep 6, 2022
locales/_template.json Outdated Show resolved Hide resolved
lib/commons/dom/is-hidden-with-css.js Show resolved Hide resolved
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