From 9dc778be4af5c3474fd777c0d6321c0e9e2de64e Mon Sep 17 00:00:00 2001 From: Melanie Sumner Date: Tue, 5 Aug 2025 15:57:24 -0500 Subject: [PATCH] HDS-5263: Alert composition change for discussion --- .../src/components/hds/alert/index.hbs | 53 +++++++++---------- 1 file changed, 24 insertions(+), 29 deletions(-) diff --git a/packages/components/src/components/hds/alert/index.hbs b/packages/components/src/components/hds/alert/index.hbs index e00894d8ebc..3fbac77d229 100644 --- a/packages/components/src/components/hds/alert/index.hbs +++ b/packages/components/src/components/hds/alert/index.hbs @@ -2,37 +2,32 @@ Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0 }} -
- {{#if this.icon}} -
- -
- {{/if}} +
+
+ {{#if this.icon}} +
+ +
+ {{/if}} -
-
- {{yield (hash Title=(component "hds/alert/title"))}} - {{yield (hash Description=(component "hds/alert/description"))}} -
+
+
+ {{yield (hash Title=(component "hds/alert/title"))}} + {{yield (hash Description=(component "hds/alert/description"))}} +
-
- {{yield - (hash - Button=(component "hds/button" size="small") LinkStandalone=(component "hds/link/standalone" size="small") - ) - }} +
+ {{yield + (hash + Button=(component "hds/button" size="small") LinkStandalone=(component "hds/link/standalone" size="small") + ) + }} +
+ {{yield (hash Generic=(component "hds/yield"))}}
- {{yield (hash Generic=(component "hds/yield"))}} -
- {{#if this.onDismiss}} - - {{/if}} + {{#if this.onDismiss}} + + {{/if}} +
\ No newline at end of file