Skip to content

Commit

Permalink
feat(blocks): update block Alert #3
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed May 10, 2021
1 parent 05f1b2a commit fb67018
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions blocks/blocks/Alert/block.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{% import "plugins/blueprints/blocks/macros/grid.html" as grid %}
{% import "plugins/blueprints/blocks/macros/attr.html" as attr %}
{% set alertTypes = {'primary': 'primary',
'secondary': 'secondary',
Expand All @@ -16,7 +15,10 @@
{{ include(template_from_string(attr.style(block.properties.style))) }}
role="alert">
{% if block.properties.header.title %}
<h4 class="alert-heading">{{ include(template_from_string(block.properties.header.title)) }}</h4>
<h4 class="alert-heading"
{{ include(template_from_string(attr.class(['alert-heading', block.properties.header.class]))) }}
{{ include(template_from_string(attr.data(block.properties.header.data))) }}
{{ include(template_from_string(attr.style(block.properties.header.style))) }}>{{ include(template_from_string(block.properties.header.title)) }}</h4>
<hr>
{% endif %}
{{ include(template_from_string(block.properties.message)) }}
Expand Down

0 comments on commit fb67018

Please sign in to comment.