diff --git a/src/Alert.tsx b/src/Alert.tsx index 30dfe3b9..1917b8a8 100644 --- a/src/Alert.tsx +++ b/src/Alert.tsx @@ -80,7 +80,12 @@ export const Alert = memo( // Honour explicit `role={undefined}` to opt out of the role attribute (RGAA 8.7). // When role is omitted entirely, default to "alert" for screen reader announcements. - const role = "role" in props ? roleFromProps : ("alert" as const); + const role = + "role" in props + ? roleFromProps + : severity === "success" || severity === "info" + ? ("status" as const) + : ("alert" as const); assert>();