From cae2ac8a07e9c41ee0185aaf9567296e7bc42618 Mon Sep 17 00:00:00 2001 From: John Jago Date: Thu, 30 May 2024 16:12:52 -0500 Subject: [PATCH] docs(alerts): change some `sr-only` to be more descriptive Although it appears the screen reader text describes an info icon in these instances, it would serve screen reader users better to have the type of alert read out to them, not the description of the icon, as they might not have any other indication of what type of alert it is. --- content/components/alerts.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/content/components/alerts.md b/content/components/alerts.md index 81ddca7fa..1eb211fa3 100644 --- a/content/components/alerts.md +++ b/content/components/alerts.md @@ -55,7 +55,7 @@ You can also include a descriptive icon to complement the message inside the ale - Info + Danger
Danger alert! Change a few things up and try submitting again.
@@ -64,7 +64,7 @@ You can also include a descriptive icon to complement the message inside the ale - Info + Success
Success alert! Change a few things up and try submitting again.
@@ -73,7 +73,7 @@ You can also include a descriptive icon to complement the message inside the ale - Info + Warning
Warning alert! Change a few things up and try submitting again.
@@ -107,7 +107,7 @@ Use this example to add a border accent to the alert component instead of just a - Info + Danger
Danger alert! Change a few things up and try submitting again.
@@ -116,7 +116,7 @@ Use this example to add a border accent to the alert component instead of just a - Info + Success
Success alert! Change a few things up and try submitting again.
@@ -125,7 +125,7 @@ Use this example to add a border accent to the alert component instead of just a - Info + Warning
Warning alert! Change a few things up and try submitting again.
@@ -372,7 +372,7 @@ The following alert components can be used if you wish to disclose more informat - Info + Danger

This is a danger alert

@@ -395,7 +395,7 @@ The following alert components can be used if you wish to disclose more informat - Info + Success

This is a success alert

@@ -418,7 +418,7 @@ The following alert components can be used if you wish to disclose more informat - Info + Warning

This is a warning alert

@@ -765,4 +765,4 @@ const dismiss: DismissInterface = new Dismiss($targetEl, $triggerEl, options, in // programmatically hide it dismiss.hide(); -``` \ No newline at end of file +```