Skip to content

Commit e768c85

Browse files
committed
docs(rules): scope member avatar aria-hidden to rows that show the name
The settings-pages rule said every member avatar renders aria-hidden because the name is always beside it. MemberRow shows only the email, so its avatar correctly stays labelled (role=img, aria-label=name), matching the emcn Avatar TSDoc. Reword the rule and regenerate the Cursor projection.
1 parent bdd8439 commit e768c85

2 files changed

Lines changed: 12 additions & 10 deletions

File tree

‎.claude/rules/sim-settings-pages.md‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,12 @@ and — on activatable rows only — the hover band. Never hand-roll any of it,
252252

253253

254254
**One member avatar.** Every member list, owner cell, and ranking renders emcn
255-
`<Avatar size='xs' name={…} src={…} aria-hidden />` — a 14px photo, or the initial
256-
on the neutral disc (`aria-hidden` because the name is always beside it). Never
257-
hand-roll an avatar or give a person a `getUserColor` hash; per-person colors
258-
belong to live collaboration (presence, cursors), where the color matches that
259-
person's cursor.
255+
`<Avatar size='xs' name={…} src={…} />` — a 14px photo, or the initial on the
256+
neutral disc. Pass `aria-hidden` only when the member's name is visibly rendered
257+
beside it; an email-only row (`MemberRow`) keeps the avatar labelled because it
258+
carries the name. Never hand-roll an avatar or give a person a `getUserColor`
259+
hash; per-person colors belong to live collaboration (presence, cursors), where
260+
the color matches that person's cursor.
260261

261262
## Header action order
262263

‎.cursor/rules/sim-settings-pages.mdc‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,12 @@ and — on activatable rows only — the hover band. Never hand-roll any of it,
249249

250250

251251
**One member avatar.** Every member list, owner cell, and ranking renders emcn
252-
`<Avatar size='xs' name={…} src={…} aria-hidden />` — a 14px photo, or the initial
253-
on the neutral disc (`aria-hidden` because the name is always beside it). Never
254-
hand-roll an avatar or give a person a `getUserColor` hash; per-person colors
255-
belong to live collaboration (presence, cursors), where the color matches that
256-
person's cursor.
252+
`<Avatar size='xs' name={…} src={…} />` — a 14px photo, or the initial on the
253+
neutral disc. Pass `aria-hidden` only when the member's name is visibly rendered
254+
beside it; an email-only row (`MemberRow`) keeps the avatar labelled because it
255+
carries the name. Never hand-roll an avatar or give a person a `getUserColor`
256+
hash; per-person colors belong to live collaboration (presence, cursors), where
257+
the color matches that person's cursor.
257258

258259
## Header action order
259260

0 commit comments

Comments
 (0)