Skip to content

Commit

Permalink
Sa11y 2.2.1
Browse files Browse the repository at this point in the history
- **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
adamchaboryk committed Apr 27, 2022
1 parent 04aa881 commit 1dee5a8
Show file tree
Hide file tree
Showing 41 changed files with 7,747 additions and 1,034 deletions.
3 changes: 3 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Sa11y - License

The development of Sa11y is led by Adam Chaboryk, IT Accessibility Specialist, Digital Media Projects, Computing and Communication Services (CCS) at Ryerson University in Toronto, Canada. Sa11y is released under the GNU GPL v2.0 license. Previous versions of Sa11y (v2.0 and below) were released under the MIT license.
The development of Sa11y is led by Adam Chaboryk, IT Accessibility Specialist, Digital Media Projects, Computing and Communication Services (CCS) at Toronto Metropolitan University (formerly Ryerson University) in Toronto, Canada. Sa11y is released under the GNU GPL v2.0 license. Previous versions of Sa11y (v2.0 and below) were released under the MIT license.

Copyright © 2020 - 2022. Ryerson University. All rights reserved.
Copyright © 2020 - 2022. Toronto Metropolitan University. All rights reserved.

## GNU General Public License

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

* [Project website](https://sa11y.netlify.app/) 🌐
* [Developer documentation](https://sa11y.netlify.app/developers/) 📓
* [Demo](https://ryersondmp.github.io/sa11y/demo/) 🚀
* [Demo](https://ryersondmp.github.io/sa11y/demo/en/) 🚀
* [Report an issue](https://github.com/ryersondmp/sa11y/issues) 🐜
* [Install the WordPress plugin](https://wordpress.org/plugins/sa11y/) 💻
* [WordPress plugin development repo](https://github.com/ryersondmp/sa11y-wp) 🛠
Expand Down
16 changes: 6 additions & 10 deletions bookmarklet/sa11y-en.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
/*-----------------------------------------------------------------------
* Sa11y: the accessibility quality assurance assistant.
* @version: 2.2.0
* @author: Development led by Adam Chaboryk, CPWA at Ryerson University.
* All acknowledgements and contributors: https://github.com/ryersondmp/sa11y
* Sa11y: the accessibility quality assurance assistant.
* Bookmarklet: English
* @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 Ryerson University
* Copyright (c) 2020 - 2022 Toronto Metropolitan University
* The above copyright notice shall be included in all copies or substantial portions of the Software.
------------------------------------------------------------------------*/

/* ------------------------------ */
/* Bookmarklet: English */
/* ------------------------------ */

const v = "2.2.0"; //Version
const v = "2.2.1"; //Version

/* Append sa11y.css */
const sa11ycss = document.createElement("link");
Expand Down
31 changes: 31 additions & 0 deletions bookmarklet/sa11y-fr-ca.js
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
});
};
31 changes: 31 additions & 0 deletions bookmarklet/sa11y-pl.js
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
});
};
31 changes: 31 additions & 0 deletions bookmarklet/sa11y-ua.js
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
3 changes: 1 addition & 2 deletions docs/demo/custom.html → docs/demo/en/custom.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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>

Expand Down
4 changes: 2 additions & 2 deletions docs/demo/errors.html → docs/demo/en/errors.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Loading

0 comments on commit 1dee5a8

Please sign in to comment.