Commit 699cf74
fix(a11y): set #online_count aria-label on init (#7777 CI fix)
The Playwright spec added in 987bb3a failed because aria-label was null
on first paint. updateNumberOfOnlineUsers — which writes the localized
aria-label — only fires on userJoin / userLeave / status change. On a
solo-author pad those events never arrive, so the badge shipped to AT
with no accessible name (and no PR-fail-safe net since pad_mode.ts's
similar pattern also relies on a later event firing).
Call self.updateNumberOfOnlineUsers() at the end of init() once the
DOM node exists, so the initial badge digit ships with its label.
Refs #7255
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 987bb3a commit 699cf74
2 files changed
Lines changed: 12 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
358 | | - | |
359 | | - | |
360 | | - | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
364 | 369 | | |
365 | 370 | | |
366 | 371 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
209 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
210 | 211 | | |
211 | | - | |
212 | | - | |
213 | 212 | | |
214 | 213 | | |
215 | | - | |
| 214 | + | |
216 | 215 | | |
217 | 216 | | |
218 | 217 | | |
| |||
0 commit comments