Skip to content

Conversation

@shunguoy
Copy link
Contributor

@shunguoy shunguoy commented May 5, 2025

  • Rule bug: svg_graphics_labelled, img_alt_valid

This PR is related to the following issue(s):

Testing reference:

  • test/v2/checker/accessibility/rules/svg_graphics_labelled_ruleunit/svg_name_ignore.html
    Before the fix, 2 violations on "The SVG element has no accessible name".
    After the fix, only 1 of the violations shows up.
  • test/v2/checker/accessibility/rules/img_alt_valid_ruleunit/img_name_ignore.html
    Before the fix, 5 violations on "The image has neither an accessible name nor is marked as decorativ"
    After the fix, only 3 of the violations show up.

I have conducted the following for this PR:

  • I validated this code in Chrome and FF
  • I validated this fix in my local env
  • I provided details for testing
  • This PR has been reviewed and is ready for test
  • I understand that the title of this PR will be used for the next release notes.

Assets to aide review attached

  • NA Links to design artifacts
  • NA Links to video walkthrough of user experience
  • NA Other

Definition of Done

  • Peer review complete
  • Secondary review & QA test complete
  • Staging deployment verified

@shunguoy shunguoy requested review from philljenkins and tombrunet May 5, 2025 16:01
@shunguoy shunguoy marked this pull request as ready for review May 5, 2025 16:02
@shunguoy shunguoy changed the title fixrule(svg_graphics_labelled, img_alt_valid) Ignore SVG accessible name requirement when its ancestor is a widget or requires presentational child fixrule(svg_graphics_labelled, img_alt_valid) Ignore SVG & image accessible name requirement when its ancestor is a widget or requires presentational child May 5, 2025
@philljenkins
Copy link
Contributor

@shunguoy See blocking approval #2224 (comment)

@philljenkins philljenkins changed the title fixrule(svg_graphics_labelled, img_alt_valid) Ignore SVG & image accessible name requirement when its ancestor is a widget or requires presentational child fixrule(svg_graphics_labelled, img_alt_valid): Ignore SVG & image accessible name requirement when its ancestor is a widget or requires presentational child May 13, 2025
tombrunet
tombrunet previously approved these changes May 13, 2025
philljenkins
philljenkins previously approved these changes May 14, 2025
Copy link
Contributor

@philljenkins philljenkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QA complete, but build failing on extension-test

@tombrunet tombrunet dismissed stale reviews from philljenkins and themself via 473678d May 20, 2025 18:53
@tombrunet tombrunet merged commit b5be5dc into master May 20, 2025
6 of 17 checks passed
tombrunet added a commit that referenced this pull request Jun 9, 2025
* update baselines #dev-2219

* update baselines #dev-2219

* fixrule(`svg_graphics_labelled`, `img_alt_valid`): Ignore SVG & image accessible name requirement when its ancestor is a widget or requires presentational child (#2269)

* update the rules and add test cases #dev-syan-v3

* fix formatting of help

* Try using npm ci instead of npm test

---------

Co-authored-by: Phill Jenkins <[email protected]>
Co-authored-by: Tom Brunet <[email protected]>

* chore(archive): Create archive for May 29, 2025 (#2297)

* chore(archive): Create archive for May 29, 2025

* Hide older archive

* Skip end tags for acc name from children

* Rebuild

* Try pup update

* Update typescript

* Change waitForXPath to waitForSelector

* params

---------

Co-authored-by: Shunguo <[email protected]>
Co-authored-by: Phill Jenkins <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ignore SVG accessible name requirement when the svg is used as the image of a button with an accessible name

4 participants