+
Skip to content

Conversation

anthonyshew
Copy link
Contributor

@anthonyshew anthonyshew commented Aug 28, 2024

Summary

The <canvas> element can be given role="img" to indicate that the canvas is not meant to be interactive. This can be seen in this PR to the corresponding ESLint plugin rule. I noticed this difference between the ESLint plugin rule and Biome while migrating in our codebase.

Additional context on <canvas> accessibility can be found here: https://pauljadam.com/demos/canvas.html

Test Plan

I've updated the valid.jsx for this rule to reflect the intended change.

@github-actions github-actions bot added A-Linter Area: linter L-JavaScript Language: JavaScript and super languages labels Aug 28, 2024
@anthonyshew anthonyshew changed the title fix: Exception in noInteractiveToNonInteractiveRole for <canvas>. fix: Exception in noInteractiveToNonInteractiveRole for <canvas>. Aug 28, 2024
@anthonyshew anthonyshew changed the title fix: Exception in noInteractiveToNonInteractiveRole for <canvas>. fix: Exception in noInteractiveToNonInteractiveRole for <canvas>. Aug 28, 2024
@anthonyshew anthonyshew changed the title fix: Exception in noInteractiveToNonInteractiveRole for <canvas>. fix: edge case in noInteractiveToNonInteractiveRole for <canvas>. Aug 28, 2024
@github-actions github-actions bot added the A-Changelog Area: changelog label Aug 28, 2024
Copy link

codspeed-hq bot commented Aug 28, 2024

CodSpeed Performance Report

Merging #3728 will not alter performance

Comparing anthonyshew:shew-20efc (2c372ca) with main (2d590ea)

Summary

✅ 101 untouched benchmarks

Copy link
Member

@ematipico ematipico left a comment

Choose a reason for hiding this comment

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

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Changelog Area: changelog A-Linter Area: linter L-JavaScript Language: JavaScript and super languages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载