-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating Jooa11y with latest build of Sa11y - WIP
Work in progress
- Loading branch information
1 parent
1a5a37c
commit e3279bc
Showing
4 changed files
with
19 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
import { Jooa11y, Lang } from '@joomla/joomla-a11y-checker/dist/js/joomla-a11y-checker.esm.js'; | ||
import { Sa11y, Lang } from 'sa11y/dist/js/sa11y.esm'; | ||
import Sa11yLangEn from 'sa11y/dist/js/lang/en'; | ||
|
||
|
||
if (!Joomla) { | ||
throw new Error('Joomla API is not properly initialised'); | ||
} | ||
|
||
const stringPrefix = 'PLG_SYSTEM_JOOA11Y_'; | ||
|
||
Lang.translate = (string) => Joomla.Text._(stringPrefix + string, string); | ||
Lang.addI18n(Sa11yLangEn.strings); | ||
|
||
const options = Joomla.getOptions('jooa11yOptions'); | ||
|
||
window.addEventListener('load', () => { | ||
// Instantiate | ||
const checker = new Jooa11y(options); | ||
checker.doInitialCheck(); | ||
const checker = new Sa11y(options); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
@import "../../../../node_modules/@joomla/joomla-a11y-checker/dist/css/joomla-a11y-checker"; | ||
@import "../../../../node_modules/sa11y/dist/css/"; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters