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
Copy file name to clipboardExpand all lines: packages/ui-alerts/src/Alert/props.ts
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,10 @@ type AlertOwnProps = {
46
46
* Determines color and icon
47
47
*/
48
48
variant?: 'info'|'success'|'warning'|'error'
49
+
/**
50
+
* How the screen reader should announce the alert variant. While the `variant` prop sets the color and icon for the alert component, this label should be a textual representation of that information. So e.g. if the variant is `info`, this label could be "Information," or "Information alert,". Note the `,` at the end of the label which helps the screenreader to be more natural sounding.
51
+
*/
52
+
variantScreenReaderLabel?: string
49
53
/**
50
54
* Function that returns the DIV where screenreader alerts will be placed.
51
55
*/
@@ -115,7 +119,9 @@ type AlertProps = AlertOwnProps &
0 commit comments