Skip to content

Commit

Permalink
Update: Move notify title above body text (fix #586) (#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
swashbuck authored Oct 15, 2024
1 parent babfed2 commit 8557584
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion less/core/notify.less
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
flex-direction: row;
column-gap: 1rem;

.notify__body {
.notify__text {
width: 60%;
}

Expand Down
30 changes: 15 additions & 15 deletions templates/notifyPopup.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,6 @@
</div>
{{/if}}

{{#if title}}
<div class="notify__title{{#if isAltTitle}} aria-label{{/if}}" id="notify-heading">
<div class="notify__title-inner" role="heading" aria-level="{{a11y_aria_level _id 'notify' _ariaLevel}}">
{{{compile title}}}
</div>
</div>
{{/if}}

{{#any _graphic._src body}}
<div class="notify__section">
<div class="notify__section-inner">

Expand All @@ -40,13 +31,23 @@
{{~/any~}}
{{~/if~}}

{{~#if body~}}
<div class="notify__body">
<div class="notify__body-inner">
{{{compile body}}}
<div class="notify__text">
{{#if title}}
<div class="notify__title{{#if isAltTitle}} aria-label{{/if}}" id="notify-heading">
<div class="notify__title-inner" role="heading" aria-level="{{a11y_aria_level _id 'notify' _ariaLevel}}">
{{{compile title}}}
</div>
</div>
{{/if}}

{{~#if body~}}
<div class="notify__body">
<div class="notify__body-inner">
{{{compile body}}}
</div>
</div>
{{~/if~}}
</div>
{{~/if~}}

{{~#if _graphic._src~}}
{{~#any (equals _imageAlignment 'right') (equals _imageAlignment 'bottom')~}}
Expand All @@ -65,7 +66,6 @@

</div>
</div>
{{/any}}

{{#equals _type "alert"}}
<div class="notify__btn-container">
Expand Down

0 comments on commit 8557584

Please sign in to comment.