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
@@ -92,16 +93,24 @@ class OudsAlertMessageActionLayout {
92
93
/// Each variant conveys a clear semantic meaning and must always be paired with its dedicated functional icon to ensure clarity and accessibility.
93
94
/// Use functional alerts to inform user about state changes, confirmations, or issues that are directly connected to system logic or user actions. These
94
95
/// messages carry functional meaning and help guide user response or acknowledgment.
95
-
/// - [description]: Optional supplementary text in an alert message. Use only when additional detail or guidance is needed beyond the label. It should remain
96
-
/// short, clear and scannable, helping the user to understand what happened and what he can do next.
96
+
/// - [description]: Optional supplementary text displayed below the alert label. Use it only when additional context, guidance or next steps are needed.
97
+
/// The content should remain concise, clear and easy to scan.
98
+
/// Supports lightweight markdown rich text formatting:
99
+
/// - Strong text using `**bold**`,
100
+
/// - Underline bold text using `__**underline bold**__`,
101
+
/// - Hyperlinks using `[link](https://example.com)`
102
+
///
103
+
/// - [onDescriptionLinkTapped]: Callback invoked when a link in the description is tapped. The URL of the link is passed as an argument.
97
104
/// - [onClose]: Callback invoked when the close button is clicked. If `null`, the close button is not displayed and the alert message remains visible until
98
105
/// the context changes (e.g., the issue is resolved, the screen is refreshed). Otherwise, the alert message is dismissable and includes a close button,
99
106
/// allowing the user to dismiss it when he has acknowledged the message.
100
107
/// Some alerts must remain visible to ensure user is aware of important information; others can be closed to reduce visual clutter.
101
108
/// - [actionLayout]: An optional action link to be displayed in the alert message. It can be used to trigger an action.
102
-
/// - [bulletList]: An optional list of bullet points to be displayed in the alert message following the label or the optional [description].
103
-
/// Add this list when you need to highlight multiple points, such as service features, plan details, or next steps. Each bullet should be short and written
104
-
/// as a clear phrase or fragment — avoid long sentences or complex structures.
109
+
/// - [bulletList]: An optional list of bullet points displayed below the label or the optional [description].
110
+
/// Use this list to highlight multiple items such as service features, plan details or next steps.
111
+
/// Each bullet should remain short, clear and easy to scan. Avoid long sentences or complex structures.
112
+
/// Supports lightweight inline markdown formatting for text emphasis :
113
+
/// - Strong text `**bold**`.
105
114
///
106
115
/// ## Usage Example:
107
116
///
@@ -121,6 +130,7 @@ class OudsAlertMessage extends StatefulWidget {
121
130
requiredthis.status,
122
131
this.description,
123
132
this.onClose,
133
+
this.onDescriptionLinkTapped,
124
134
this.actionLayout,
125
135
this.bulletList,
126
136
});
@@ -137,6 +147,9 @@ class OudsAlertMessage extends StatefulWidget {
137
147
/// A callback invoked when the close button is clicked. If `null`, the close button is not shown.
138
148
finalVoidCallback? onClose;
139
149
150
+
/// A callback invoked when a link in the description is tapped.
0 commit comments