ryersondmp / sa11y

Sa11y is an accessibility quality assurance tool that visually highlights common accessibility and usability issues. Geared towards content authors, Sa11y straightforwardly identifies errors or warnings at the source with a simple tooltip on how to fix them.
https://sa11y.netlify.app
Other
284 stars 44 forks source link

Added an event to use the results #64

Closed HUisHU-Christian closed 1 year ago

HUisHU-Christian commented 1 year ago

I added an event to use the results beyond the scope of this single library. This can be used in the WordPress-Plugin to store the data in a database for example.

adamchaboryk commented 1 year ago

I manually transferred over the CustomEvent to my dev branch, along with some other small refactoring (so there's less code). If you'd like to include the generated CSS path as part of the custom event, one would just use the selectorPath prop upon instantiation.

https://github.com/ryersondmp/sa11y/blob/3.0.3-development/src/js/sa11y.js#L245