Open jairovg opened 2 years ago
This PR allows the set-up of a root element different from the document to run the audit on the first load. Fix #36
NOTE: This element will be used as the default context sent to axe.run.
axe.run
// Plugin setup Vue.use(VueAxe, { element: '#app' })
// manual a11y report using a different root element, document for this sample this.$axe.run({ clearConsole: true, element: document })
Documentation updated with the new element for the plugin config.
If yes, please describe the impact and migration path for existing applications:
Good approach, this will enhance user experience.
Awesome!!
General Notes
This PR allows the set-up of a root element different from the document to run the audit on the first load. Fix #36
NOTE: This element will be used as the default context sent to
axe.run
.What kind of change does this PR introduce? (check at least one)
Documentation updated with the new element for the plugin config.
Does this PR introduce a breaking change? (check one)
If yes, please describe the impact and migration path for existing applications:
The PR fulfills these requirements: