misc: More accessibility fixes (#29322)

* misc: Add tabindex to shiki code highlights so that it is accessible via the keyboard.

* Add tabindex for code preview in error-header

* Change h3 to h2 to meet a11y guidelines for incremental headers

* Add roles for landmarks

* Move navigation role to correct area

* Update main to have singular role

* update nav in banner to 'div' so there aren't 2 navs

* Have an h1 on the Global page to address a11y violation

* Fix aria-disabled attr to have valid 'true' value instead of 'disabled'

* Add changelog entry

* Fix tests that are looking for aria-disabled to now look for 'true'

* chore: fix test that's failing in npm/react test
This commit is contained in:
Jennifer Shehane
2024-05-02 13:00:20 -04:00
committed by GitHub
parent f629856775
commit 1bb5a7301e
23 changed files with 67 additions and 55 deletions
+4
View File
@@ -11,6 +11,10 @@ _Released 5/7/2024 (PENDING)_
- We now pass the same default Chromium flags to Electron as we do to Chrome. As a result of this change, the application under test's `navigator.webdriver` property will now correctly be `true` when testing in Electron. Fixes [#27939](https://github.com/cypress-io/cypress/issues/27939).
**Misc:**
- Improved accessibility of the Cypress App in some areas. Addressed in [#29322](https://github.com/cypress-io/cypress/pull/29322).
**Dependency Updates:**
- Updated electron from `27.1.3` to `27.3.10` to address [CVE-2024-3156](https://nvd.nist.gov/vuln/detail/CVE-2024-3156). Addressed in [#29431](https://github.com/cypress-io/cypress/pull/29431).