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
Screen readers either read the digit count as plain text (no context) or skip if visually hidden
Proposed extension
Add an optional aria_label attr:
@specunread_badge(non_neg_integer(),opts())::Element.t()defunread_badge(count,opts\\[])# Existing opts: threshold, id# NEW opt: aria_label (string; if provided, emit on the rendered span)
In the renderer clauses (live_ui + ash_ui): when aria_label is provided, emit aria-label={value} on the badge's root element. When not provided: existing behavior (badge has implicit semantics via count text + role="status").
Note on what's NOT proposed
The "loud" ariston attr (unread > 5 historical visual variant) is being dropped from ariston-side. Canonical's threshold-capping is sufficient; ariston can re-emit "loud" visual treatment via CSS rule against the canonical badge's data-live-ui-unread-count attr if desired.
Status
This is a small a11y fix. Once landed, ariston PR #351 restores screen-reader-friendly labels on unread badges.
Activity