fix(notifications): a row is named by what it is about, not its kind alone
This commit is contained in:
@@ -690,7 +690,9 @@ function NotificationRow({
|
||||
}
|
||||
return (
|
||||
<div
|
||||
{...navItemAttrs(navIndex, title)}
|
||||
// Named by what it is about, not its kind alone: every "Download ready" read the same to a
|
||||
// screen reader, and Back could not tell the row it was opened from by its name.
|
||||
{...navItemAttrs(navIndex, body ? `${title}: ${body}` : title)}
|
||||
{...rowProps}
|
||||
className={`${SURFACE.card} group p-3.5 flex items-start gap-3 transition ${
|
||||
n.read ? "opacity-70" : ""
|
||||
@@ -786,7 +788,7 @@ function ClientActivityRow({
|
||||
const access = n.meta?.kind === "access-requests" ? n.meta : null;
|
||||
return (
|
||||
<div
|
||||
{...navItemAttrs(navIndex, n.title || n.message)}
|
||||
{...navItemAttrs(navIndex, n.title ? `${n.title}: ${n.message}` : n.message)}
|
||||
{...rowProps}
|
||||
className={`${SURFACE.card} group p-3.5 flex items-start gap-3 ${needsAction ? "ring-1 ring-accent/30" : ""}`}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user