Repository navigation
fix(avatar): Hide decorative fallback initials from assistive technology - #4188
minwookshin wants to merge 4 commits into
Conversation
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
| Check name | Status | Explanation |
|---|---|---|
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check | ✅ Passed | The title clearly and concisely describes the main change: hiding decorative fallback initials from assistive technology. |
| Linked Issues check | ✅ Passed | PR #4188 satisfies the coding requirement in issue #4009. modules/react/avatar/lib/Avatar.tsx applies aria-hidden={isDecorative} to fallback initials, in addition to the image. This hides initials… |
| Out of Scope Changes check | ✅ Passed | The changes stay within issue #4009. The Avatar implementation and tests address decorative fallback accessibility. The Storybook example, story registration, and documentation explain and demonstrate… |
| Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 5… |
✨ Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Create a new PR
-
- Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Autopilot is currently an internal CodeRabbit preview.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
Workday/canvas-kit
|
||||||||||||||||||||||||||||||||||||||||
| Project |
Workday/canvas-kit
|
| Branch Review |
fix/avatar-decorative-initials
|
| Run status |
|
| Run duration | 02m 49s |
| Commit |
|
| Committer | Minwook Shin |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
0
|
|
|
0
|
|
|
17
|
|
|
0
|
|
|
873
|
| View all changes introduced in this branch ↗︎ | |
UI Coverage
19.37%
|
|
|---|---|
|
|
1634
|
|
|
390
|
Accessibility
99.18%
|
|
|---|---|
|
|
4 critical
5 serious
3 moderate
2 minor
|
|
|
75
|
|
The remaining CI failure is a Yarn registry 502 while installing dependencies, before the integration tests start. Could you rerun the failed job when you have a chance? |
Summary
Fixes #4009.
Hide fallback initials from assistive technology when
Avataris decorative, including while an image loads or fails. Add a no-image example beside the user's name and document the behavior.Release Category
Components
Checklist
ready for reviewhas been added to PRFor the Reviewer
Where Should the Reviewer Start?
modules/react/avatar/lib/Avatar.tsx: the fallback name now receivesaria-hiddenfromisDecorative.Testing Manually
Open Avatar → Decorative Initials in Storybook. The initials remain visible, while the adjacent name is the accessible text. Compare with the non-decorative avatar and the image example.
Validation: 4,168 unit/SSR tests passed; Avatar Cypress component tests passed (4, including axe); lint and spec, Cypress, and Storybook type checks passed.
Summary by CodeRabbit