Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc: More accessibility fixes #29322

Merged
merged 17 commits into from May 2, 2024
Merged

misc: More accessibility fixes #29322

merged 17 commits into from May 2, 2024

Conversation

jennifer-shehane
Copy link
Member

@jennifer-shehane jennifer-shehane commented Apr 12, 2024

Additional details

Fixing some more a11y violations highlighted originally at https://cloud.cypress.io/projects/ypt4pf/runs/54926/accessibility/

  1. Add tabindex to horizontally scrollable code previews to address this serious violation. Users can now tab and scroll the code using the keyboard alone. You can see in the new report that this serious violation is gone.

Screenshot 2024-04-12 at 2 31 01 PM

Screenshot 2024-04-12 at 2 44 06 PM

  1. Change h3 level headings to h2 to address this moderate violation which requires headings to not jump numbers. You can see in the new report that this moderate violation is gone.

    The heading styles look the same in Percy - see 'Choose a browser'

    Screenshot 2024-04-19 at 11 29 33 AM

  2. Addressed various moderate landmark violations so that main, nav, and banner are correctly identified in the launchpad via the HTML tag and role. Explanation: https://dequeuniversity.com/rules/axe/4.9/landmark-main-is-top-level?application=axeAPI

  3. Addressed critical violation in our CT tests where we're setting aria-disabled="disabled" instead of the properly attr value of aria-disabled=true.

Steps to test

Check the new a11y report and that all existing tests and percy checks pass.

Also Percy indicated no visual changes from this PR.

How has the user experience changed?

PR Tasks

@jennifer-shehane jennifer-shehane changed the title misc: More accessibility fixes [WIP] misc: More accessibility fixes Apr 12, 2024
@jennifer-shehane jennifer-shehane self-assigned this Apr 12, 2024
Copy link

cypress bot commented Apr 16, 2024

6 flaky tests on run #55300 ↗︎

0 29189 1327 0 Flakiness 6

Details:

Merge branch 'develop' into a11y-fix-3
Project: cypress Commit: e39ace6573
Status: Passed Duration: 21:19 💡
Started: May 2, 2024 3:50 PM Ended: May 2, 2024 4:11 PM
Flakiness  e2e/origin/commands/waiting.cy.ts • 1 flaky test • 5x-driver-electron

View Output

Test Artifacts
... > throws when foo cannot resolve Test Replay
Flakiness  e2e/origin/basic_login.cy.ts • 1 flaky test • 5x-driver-firefox

View Output

Test Artifacts
Multi-step Auth > final auth redirects back to approval page - flat
    </td>
  </tr></table>
Flakiness  commands/net_stubbing.cy.ts • 1 flaky test • 5x-driver-chrome

View Output

Test Artifacts
... > stops waiting when an fetch request is canceled Test Replay
Flakiness  e2e/origin/commands/waiting.cy.ts • 1 flaky test • 5x-driver-chrome

View Output

Test Artifacts
... > throws when foo cannot resolve Test Replay
Flakiness  commands/net_stubbing.cy.ts • 2 flaky tests • 5x-driver-webkit

View Output

Test Artifacts
... > with `resourceType` > can match a proxied image request by resourceType
    </td>
  </tr>
  <tr>
    <td colspan="2">
      <a href="https://cloud.cypress.io/projects/ypt4pf/runs/55300/overview/c069bd4b-3113-4396-9ed1-7ae317eb6623?reviewViewBy=FLAKY&utm_source=github&utm_medium=flaky&utm_campaign=view%20test">
        ... > stops waiting when an xhr request is canceled
      </a>
    </td>
    <td>
      
    </td>
  </tr></table>

Review all test suite changes for PR #29322 ↗︎

@jennifer-shehane jennifer-shehane changed the title [WIP] misc: More accessibility fixes misc: More accessibility fixes Apr 23, 2024
@AtofStryker AtofStryker self-requested a review April 29, 2024 14:53
@jennifer-shehane jennifer-shehane merged commit 1bb5a73 into develop May 2, 2024
79 of 82 checks passed
@jennifer-shehane jennifer-shehane deleted the a11y-fix-3 branch May 2, 2024 17:00
jj497 pushed a commit to jj497/cypress that referenced this pull request May 5, 2024
* 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
@cypress-bot
Copy link
Contributor

cypress-bot bot commented May 8, 2024

Released in 13.9.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v13.9.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators May 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants