forked from ryersondmp/sa11y
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- **New:** Addition of French (Canadian), Ukrainian and Polish translations. - **Refactoring:** Changed `customChecks` prop default to `true` - **Bug fix:** Added `[data-tippy-root]` to ignore list. - **i18n:** Adjusted `containsLinkTextStopWords` to ignore specific HTML entities instead of _any_ special characters. - **i18n:** Adjusted suspicious list check to account for Ukrainian letters. - **Other:** University name change. Ryerson University to Toronto Metropolitan University.
- Loading branch information
1 parent
04aa881
commit 1dee5a8
Showing
41 changed files
with
7,747 additions
and
1,034 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 |
---|---|---|
|
@@ -21,6 +21,9 @@ Some of Sa11y's rulesets are based on best practices or are inspired by commonly | |
|
||
If you would like to discuss an existing ruleset, please create a new [issue.](https://github.com/ryersondmp/sa11y/issues) Provide any references or sources if you are proposing a new ruleset or would like to change an existing one. | ||
|
||
## Translations | ||
Translations may either be contributed back to the repository with a pull request, or translated files can be returned to: [[email protected]](mailto:adam.chaboryk) | ||
|
||
## How to contribute code | ||
There's a couple of ways you can contribute code. | ||
|
||
|
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
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
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
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/*----------------------------------------------------------------------- | ||
* Sa11y: the accessibility quality assurance assistant. | ||
* Bookmarklet: French (Canadian) | ||
* @author: Development led by Adam Chaboryk, CPWA | ||
* @acknowledgements: https://sa11y.netlify.app/acknowledgements/ | ||
* @license: https://github.com/ryersondmp/sa11y/blob/master/LICENSE.md | ||
* Copyright (c) 2020 - 2022 Toronto Metropolitan University | ||
* The above copyright notice shall be included in all copies or substantial portions of the Software. | ||
------------------------------------------------------------------------*/ | ||
|
||
const v = "2.2.1"; //Version | ||
|
||
/* Append sa11y.css */ | ||
const sa11ycss = document.createElement("link"); | ||
sa11ycss.setAttribute("rel", "stylesheet"); | ||
sa11ycss.setAttribute("href", `https://cdn.jsdelivr.net/gh/ryersondmp/sa11y@${v}/src/sa11y.min.css`); | ||
sa11ycss.setAttribute("type", "text/css"); | ||
|
||
const bodyheader = document.getElementsByTagName("head")[0]; | ||
bodyheader.appendChild(sa11ycss); | ||
|
||
/* Queue Poppers.js, Tippy.js, and Sa11y. Thanks to JSDeliver for this cool combine feature! */ | ||
const combine = document.createElement("script"); | ||
combine.src = `https://cdn.jsdelivr.net/combine/npm/@popperjs/core@2/dist/umd/popper.min.js,npm/tippy.js@6/dist/tippy.umd.min.js,gh/ryersondmp/sa11y@${v}/src/languages/sa11y-fr-ca.min.js,gh/ryersondmp/sa11y@${v}/src/sa11y.min.js`; | ||
|
||
document.body.appendChild(combine); | ||
combine.onload = combine.onreadystatechange = function() { | ||
new Sa11y({ | ||
detectSPArouting: true | ||
}); | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/*----------------------------------------------------------------------- | ||
* Sa11y: the accessibility quality assurance assistant. | ||
* Bookmarklet: Polish | ||
* @author: Development led by Adam Chaboryk, CPWA | ||
* @acknowledgements: https://sa11y.netlify.app/acknowledgements/ | ||
* @license: https://github.com/ryersondmp/sa11y/blob/master/LICENSE.md | ||
* Copyright (c) 2020 - 2022 Toronto Metropolitan University | ||
* The above copyright notice shall be included in all copies or substantial portions of the Software. | ||
------------------------------------------------------------------------*/ | ||
|
||
const v = "2.2.1"; //Version | ||
|
||
/* Append sa11y.css */ | ||
const sa11ycss = document.createElement("link"); | ||
sa11ycss.setAttribute("rel", "stylesheet"); | ||
sa11ycss.setAttribute("href", `https://cdn.jsdelivr.net/gh/ryersondmp/sa11y@${v}/src/sa11y.min.css`); | ||
sa11ycss.setAttribute("type", "text/css"); | ||
|
||
const bodyheader = document.getElementsByTagName("head")[0]; | ||
bodyheader.appendChild(sa11ycss); | ||
|
||
/* Queue Poppers.js, Tippy.js, and Sa11y. Thanks to JSDeliver for this cool combine feature! */ | ||
const combine = document.createElement("script"); | ||
combine.src = `https://cdn.jsdelivr.net/combine/npm/@popperjs/core@2/dist/umd/popper.min.js,npm/tippy.js@6/dist/tippy.umd.min.js,gh/ryersondmp/sa11y@${v}/src/languages/sa11y-pl.min.js,gh/ryersondmp/sa11y@${v}/src/sa11y.min.js`; | ||
|
||
document.body.appendChild(combine); | ||
combine.onload = combine.onreadystatechange = function() { | ||
new Sa11y({ | ||
detectSPArouting: true | ||
}); | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/*----------------------------------------------------------------------- | ||
* Sa11y: the accessibility quality assurance assistant. | ||
* Bookmarklet: Ukrainian | ||
* @author: Development led by Adam Chaboryk, CPWA | ||
* @acknowledgements: https://sa11y.netlify.app/acknowledgements/ | ||
* @license: https://github.com/ryersondmp/sa11y/blob/master/LICENSE.md | ||
* Copyright (c) 2020 - 2022 Toronto Metropolitan University | ||
* The above copyright notice shall be included in all copies or substantial portions of the Software. | ||
------------------------------------------------------------------------*/ | ||
|
||
const v = "2.2.1"; //Version | ||
|
||
/* Append sa11y.css */ | ||
const sa11ycss = document.createElement("link"); | ||
sa11ycss.setAttribute("rel", "stylesheet"); | ||
sa11ycss.setAttribute("href", `https://cdn.jsdelivr.net/gh/ryersondmp/sa11y@${v}/src/sa11y.min.css`); | ||
sa11ycss.setAttribute("type", "text/css"); | ||
|
||
const bodyheader = document.getElementsByTagName("head")[0]; | ||
bodyheader.appendChild(sa11ycss); | ||
|
||
/* Queue Poppers.js, Tippy.js, and Sa11y. Thanks to JSDeliver for this cool combine feature! */ | ||
const combine = document.createElement("script"); | ||
combine.src = `https://cdn.jsdelivr.net/combine/npm/@popperjs/core@2/dist/umd/popper.min.js,npm/tippy.js@6/dist/tippy.umd.min.js,gh/ryersondmp/sa11y@${v}/src/languages/sa11y-ua.min.js,gh/ryersondmp/sa11y@${v}/src/sa11y.min.js`; | ||
|
||
document.body.appendChild(combine); | ||
combine.onload = combine.onreadystatechange = function() { | ||
new Sa11y({ | ||
detectSPArouting: true | ||
}); | ||
}; |
File renamed without changes.
File renamed without changes.
File renamed without changes
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 |
---|---|---|
|
@@ -11,7 +11,6 @@ | |
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css"> | ||
<meta name="theme-color" content="#7952b3"> | ||
<link href="main.css" rel="stylesheet"> | ||
</head> | ||
|
||
<body> | ||
|
@@ -118,7 +117,7 @@ <h4 class="accordion-header" id="flush-headingOne"><button class="accordion-butt | |
</script> | ||
|
||
<!--To easily switch between production and development mode.--> | ||
<script src="sa11y-demo-cdn.js"></script> | ||
<script src="../sa11y-demo-cdn.js"></script> | ||
|
||
</body> | ||
|
||
|
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
<link rel="canonical" href="https://getbootstrap.com/docs/5.1/examples/navbar-static/"> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" | ||
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"> | ||
<link href="main.css" rel="stylesheet"> | ||
<link href="assets/main.css" rel="stylesheet"> | ||
<meta name="theme-color" content="#7952b3"> | ||
|
||
</head> | ||
|
@@ -169,7 +169,7 @@ <h2 class="pt-2">Size</h2> | |
</script> | ||
|
||
<!--To easily switch between production and development mode.--> | ||
<script src="sa11y-demo-cdn.js"></script> | ||
<script src="../sa11y-demo-cdn.js"></script> | ||
</body> | ||
|
||
</html> |
Oops, something went wrong.