Skip to content

Sa11y 3.1.2

Compare
Choose a tag to compare
@adamchaboryk adamchaboryk released this 07 Mar 19:00
· 16 commits to master since this release
b8997bb

Developer updates

Additional ways of adding custom checks without a build step. Custom Check's documentation will be updated soon. Custom checks can be:

  1. Passed as an object during instantiation.
  2. Using event dispatchers, Sa11y will "listen" for the presence of custom checks up to 500ms.
    • Timing can be customized via prop delayCustomCheck

New methods

New methods to help build custom checks.

  • sa11y.find(selector, desiredRoot, exclude) — Find any elements on the page.
  • sa11y.prepareDismissal(string) — Create dismiss keys.
  • sa11y.sanitizeHTML(string) — Sanitize text strings.

Bug fixes

  • Adjust tippy.js property to use auto-start instead of right-start so tooltips open up on the side with the most space.
  • Tooltip arrows visually closer to annotation.
  • Spelling error fix thanks to @brianteeman