Closed HUisHU-Christian closed 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
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.