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

Provide the ability to ignore/exclude custom elements #186

Open
codebymikey opened this issue May 10, 2021 · 0 comments
Open

Provide the ability to ignore/exclude custom elements #186

codebymikey opened this issue May 10, 2021 · 0 comments

Comments

@codebymikey
Copy link

It should be possible to exclude certain elements from the audit. We already have this:

https://github.com/Khan/tota11y/blob/eb44df56719a27e2a727005e0c69d88f91204e4c/plugins/shared/audit.js#L15-L22

We can add a default utility selector like .tota11y-ignore to exclude those elements similar to how Google Translate's notranslate class works.

It should however also be possible to provide custom CSS selectors if the library user would rather not or is unable to modify the DOM elements.

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

No branches or pull requests

1 participant