-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to cope with the RCE in native browser fullscreen (#126)
* Update to cope with the RCE in native browser fullscreen The primary change is to checker.js where it forwards the mountNode prop to the Tray. This gets the a11y checker on top of the RCE while in fullscreen. Adjacent to that we position the indicator so it's correct and visible whether in fullscreen or not. Also fixed a bug where adjust() kept tracking indicators even after they were removed from the DOM, and throttled the work adjust does to just once every 10ms. Moved the es build output from lib/modules to es and added jest.config.js to ignore anything in either directory. Updated the yarn "test" script so you can now execute yarn test path/to/test/file.js and jest will execute just the given file. Added a yarn "test:debug" to facilitate debugging specs. Updated the version number and changelog in preparation for publishing the updates. closes MAT-1115 * Update to cope with the RCE in native browser fullscreen The primary change is to checker.js where it forwards the mountNode prop to the Tray. This gets the a11y checker on top of the RCE while in fullscreen. Adjacent to that we position the indicator so it's correct and visible whether in fullscreen or not. Also fixed a bug where adjust() kept tracking indicators even after they were removed from the DOM, and throttled the work adjust does to just once every 10ms. Moved the es build output from lib/modules to es and added jest.config.js to ignore anything in either directory. Updated the yarn "test" script so you can now execute yarn test path/to/test/file.js and jest will execute just the given file. Added a yarn "test:debug" to facilitate debugging specs. Updated the version number and changelog in preparation for publishing the updates. closes MAT-1115 * Update to cope with the RCE in native browser fullscreen The primary change is to checker.js where it forwards the mountNode prop to the Tray. This gets the a11y checker on top of the RCE while in fullscreen. Adjacent to that we position the indicator so it's correct and visible whether in fullscreen or not. Also fixed a bug where adjust() kept tracking indicators even after they were removed from the DOM, and throttled the work adjust does to just once every 10ms. Moved the es build output from lib/modules to es and added jest.config.js to ignore anything in either directory. Updated the yarn "test" script so you can now execute yarn test path/to/test/file.js and jest will execute just the given file. Added a yarn "test:debug" to facilitate debugging specs. Updated the version number and changelog in preparation for publishing the updates. closes MAT-1115
- Loading branch information
Showing
12 changed files
with
728 additions
and
875 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,5 +1,6 @@ | ||
node_modules | ||
lib | ||
es | ||
src/translations.json | ||
coverage | ||
cypress/videos | ||
|
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,28 +1,44 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [Unreleased] | ||
|
||
## [4.1.2] - 2022-11-30 | ||
|
||
- Changes to cope with the RCE being put in browser-native fullscreen | ||
- Fixed a bug that over aggressively kept track of the blue box that shows | ||
the element in violation. | ||
|
||
## [4.1.1] - 2022-08-10 | ||
|
||
### Changed | ||
|
||
- Updated dependency versions | ||
|
||
## [4.1.0] - 2022-08-09 | ||
|
||
### Added | ||
|
||
- A new configurable rule that informs users to not use H1 headings | ||
|
||
## [4.0.0] - 2022-08-02 | ||
|
||
### Added | ||
|
||
- A changelog to make changes clear | ||
|
||
### Changed | ||
|
||
- `checkAccessibility` command's paramater `additional_rules` has been renamed `additionalRules` | ||
|
||
### Fixed | ||
|
||
- Bug that caused inconsistent checking behavior between `checkAccessibility` and `openAccessibilityChecker` when using a non-default configuration | ||
|
||
### Removed | ||
|
||
- TinyMCE v4 support |
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,29 @@ | ||
/* | ||
* Copyright (C) 2022 - present Instructure, Inc. | ||
* | ||
* This file is part of Canvas. | ||
* | ||
* Canvas is free software: you can redistribute it and/or modify it under | ||
* the terms of the GNU Affero General Public License as published by the Free | ||
* Software Foundation, version 3 of the License. | ||
* | ||
* Canvas is distributed in the hope that it will be useful, but WITHOUT ANY | ||
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR | ||
* A PARTICULAR PURPOSE. See the GNU Affero General Public License for more | ||
* details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License along | ||
* with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
module.exports = { | ||
setupFiles: ["<rootDir>/jest-setup.js"], | ||
snapshotSerializers: ["enzyme-to-json/serializer"], | ||
testPathIgnorePatterns: [ | ||
"<rootDir>/node_modules", | ||
"<rootDir>/es", | ||
"<rootDir>/lib", | ||
], | ||
modulePathIgnorePatterns: ["<rootDir>/.*/__mocks__"], | ||
testMatch: ["**/__tests__/*.[jt]s?(x)"], | ||
} |
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
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
Oops, something went wrong.