You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/mui-material/src/Avatar/accessibility.md
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Rated against WCAG 2.2 Level A and AA. See the [reports legend](../accessibility
8
8
| ⚠️ Partially Supports | 2 |
9
9
| ❌ Does Not Support | 0 |
10
10
| ➖ Not Applicable | 44 |
11
-
| 🚩 Unverified |9/11 |
11
+
| 🚩 Unverified |6/11 |
12
12
13
13
## Known gaps
14
14
@@ -49,10 +49,11 @@ Rated against WCAG 2.2 Level A and AA. See the [reports legend](../accessibility
49
49
50
50
#### 1.4.5 Images of Text · AA
51
51
52
-
`🚩 Unverified` · `✅ Supports` · `◐ Shared`
52
+
`✅ Supports` · `◐ Shared`
53
53
54
54
- Letter/initials children and the `alt[0]` fallback are live, CSS-styled DOM text, not images of text.
55
55
- The only risk is an author deliberately passing a bitmap of text as the avatar image.
56
+
- Confirmed by a unit test in `Avatar.test.js` (initials render as a text node, not an `<img>`).
56
57
57
58
**Manual testing steps**
58
59
@@ -83,10 +84,11 @@ Rated against WCAG 2.2 Level A and AA. See the [reports legend](../accessibility
83
84
84
85
#### 1.3.1 Info and Relationships · A
85
86
86
-
`🚩 Unverified` · `✅ Supports` · `◐ Shared`
87
+
`✅ Supports` · `◐ Shared`
87
88
88
89
- The only relationship (image-to-name) is conveyed natively via `<img>` and `alt` text.
89
90
- If an author builds meaning by composing the avatar with surrounding content (for example, a name and avatar in a list item), conveying that structure is the author's responsibility.
91
+
- Confirmed by unit tests in `Avatar.test.js` (the root exposes no role; the `Person` fallback and `SvgIcon` children are `aria-hidden`).
90
92
91
93
**Manual testing steps**
92
94
@@ -149,9 +151,10 @@ Rated against WCAG 2.2 Level A and AA. See the [reports legend](../accessibility
149
151
150
152
#### 1.4.12 Text Spacing · AA
151
153
152
-
`🚩 Unverified` · `✅ Supports` · `● Component`
154
+
`✅ Supports` · `● Component`
153
155
154
156
- An avatar holds 1 to 2 character initials (or the `alt[0]` fallback) in a fixed 40px box with `overflow: hidden`, so the only risk to text legibility is clipping. Increasing text spacing would overflow the content but not clip it.
157
+
- Confirmed by a Playwright regression test (`test/regressions/index.test.js`): the `OP` initials stay within the box after the four text-spacing overrides.
155
158
156
159
**Manual testing steps**
157
160
@@ -219,5 +222,5 @@ Rated against WCAG 2.2 Level A and AA. See the [reports legend](../accessibility
219
222
-**Standard.** WCAG 2.2, Level A and AA.
220
223
-**Component version.**`@mui/material` 9.1.1.
221
224
-**Scope.** The Avatar component in isolation, rendered through its documented API. `AvatarGroup` is a separate component and is out of scope.
222
-
-**Automated.** axe-core via the Playwright regression harness, enrolling `LetterAvatars`, `BackgroundLetterAvatars`, `IconAvatars`, `VariantAvatars`, and the `AvatarA11yImage` fixture (results in [`avatars.a11y.json`](../../../../docs/data/material/components/avatars/avatars.a11y.json)); `color-contrast` is recorded but not asserted on the low-contrast letter demos (via `skipAssertions`). Plus unit tests in `Avatar.test.js` (for example, `alt` forwarding at `Avatar.test.js:65`).
225
+
-**Automated.** axe-core via the Playwright regression harness(results in [`avatars.a11y.json`](../../../../docs/data/material/components/avatars/avatars.a11y.json)), a text-spacing clip test in the same harness, and unit tests in `Avatar.test.js`.
223
226
-**Assistive-technology review.** Spot checked but not audited. `🚩` criteria are assessed from source pending a review with NVDA, JAWS, and VoiceOver.
0 commit comments