@@ -202,12 +202,13 @@ class _OudsAlertMessageState extends State<OudsAlertMessage> {
202202 ? .where ((bullet) => bullet.isNotEmpty)
203203 .map ((bullet) => buildBulletList (context, widget.status, bullet)),
204204 // Optional action link positioned at the bottom.
205- if (widget.actionLink != null &&
205+ if (actionLink != null &&
206+ widget.actionLink != null &&
206207 widget.actionLink! .text.isNotEmpty &&
207208 widget.actionLink! .position ==
208209 OudsAlertMessageActionLinkPosition .bottom) ...[
209210 SizedBox (height: alertTokens.spaceRowGapAction),
210- ? actionLink,
211+ actionLink,
211212 ],
212213 ],
213214 ),
@@ -246,8 +247,12 @@ class _OudsAlertMessageState extends State<OudsAlertMessage> {
246247 child: SvgPicture .asset (
247248 excludeFromSemantics: true ,
248249 hasIcon,
249- width: alertTokens.sizeIcon,
250- height: alertTokens.sizeIcon,
250+ width: MediaQuery .textScalerOf (
251+ context,
252+ ).scale (alertTokens.sizeIcon),
253+ height: MediaQuery .textScalerOf (
254+ context,
255+ ).scale (alertTokens.sizeIcon),
251256 fit: BoxFit .contain,
252257 colorFilter: ColorFilter .mode (
253258 alertMessageStatusModifier.getStatusIconColor (widget.status),
@@ -285,13 +290,11 @@ class _OudsAlertMessageState extends State<OudsAlertMessage> {
285290 widget.actionLink! .text.isNotEmpty &&
286291 widget.actionLink! .position ==
287292 OudsAlertMessageActionLinkPosition .topEnd) ...[
288- Padding (
289- padding: EdgeInsetsDirectional .only (
290- end: closeButton != null
291- ? alertTokens.spaceColumnGap
292- : alertTokens.spacePaddingInline,
293- ),
294- child: actionLink,
293+ ? actionLink,
294+ SizedBox (
295+ width: closeButton != null
296+ ? alertTokens.spaceColumnGapAction
297+ : alertTokens.spacePaddingInline,
295298 ),
296299 ],
297300 // Optional close button.
@@ -340,7 +343,7 @@ class _OudsAlertMessageState extends State<OudsAlertMessage> {
340343 ) {
341344 final theme = OudsTheme .of (context);
342345 final alertMessageStatusModifier = OudsAlertStatusModifier (context);
343- final maxTextWidth = theme.sizeScheme (context).maxWidthTypeBodyMedium ;
346+ final maxTextWidth = theme.sizeScheme (context).maxWidthTypeLabelMedium ;
344347 final textScaler = MediaQuery .textScalerOf (context);
345348 final double iconContainerWidth = textScaler.scale (
346349 theme.sizeScheme (context).iconWithLabelMediumSizeMedium,
@@ -359,7 +362,7 @@ class _OudsAlertMessageState extends State<OudsAlertMessage> {
359362
360363 return IntrinsicHeight (
361364 child: Row (
362- crossAxisAlignment: CrossAxisAlignment .center ,
365+ crossAxisAlignment: CrossAxisAlignment .start ,
363366 children: [
364367 SizedBox (
365368 width: iconContainerWidth,
@@ -380,7 +383,12 @@ class _OudsAlertMessageState extends State<OudsAlertMessage> {
380383 ),
381384 ),
382385 ),
383- SizedBox (width: 8 ), //TODO: Use bullet list tokens when available
386+ SizedBox (
387+ width: theme
388+ .componentsTokens (context)
389+ .bulletList
390+ .spaceColumnGapBodyMedium,
391+ ),
384392 Flexible (
385393 child: ConstrainedBox (
386394 constraints: BoxConstraints (maxWidth: maxTextWidth),
0 commit comments