Open codebymikey opened 3 years ago
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.
.tota11y-ignore
notranslate
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.
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'snotranslate
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.