Skip to content

Commit bb0ae16

Browse files
committedMar 28, 2022
fixed wrong nesting
1 parent 7afea19 commit bb0ae16

File tree

1 file changed

+11
-14
lines changed
  • packages/components/addon/components/hds/alert

1 file changed

+11
-14
lines changed
 

‎packages/components/addon/components/hds/alert/index.hbs

+11-14
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,24 @@
1313

1414
<div class="hds-alert__content">
1515
<div class="hds-alert__text">
16-
1716
{{#if @title}}
1817
<div class="hds-alert__title">{{@title}}</div>
1918
{{/if}}
20-
2119
{{#if @description}}
2220
<div class="hds-alert__description">{{html-safe @description}}</div>
2321
{{/if}}
24-
25-
{{#if (has-block "actions")}}
26-
{{! IMPORTANT: don't change the formatting or it will add empty space inside the element (we're using ":empty" in CSS to hide it when it's empty!) }}
27-
<div class="hds-alert__actions">{{yield
28-
(hash
29-
Button=(component "hds/button")
30-
Link::Standalone=(component "hds/link/standalone")
31-
LinkTo::Standalone=(component "hds/link-to/standalone")
32-
)
33-
to="actions"
34-
}}</div>
35-
{{/if}}
3622
</div>
3723

24+
{{#if (has-block "actions")}}
25+
{{! IMPORTANT: don't change the formatting or it will add empty space inside the element (we're using ":empty" in CSS to hide it when it's empty!) }}
26+
<div class="hds-alert__actions">{{yield
27+
(hash
28+
Button=(component "hds/button")
29+
Link::Standalone=(component "hds/link/standalone")
30+
LinkTo::Standalone=(component "hds/link-to/standalone")
31+
)
32+
to="actions"
33+
}}</div>
34+
{{/if}}
3835
</div>
3936
</div>

0 commit comments

Comments
 (0)