restore regular uswds alerts
This commit is contained in:
parent
af850c5789
commit
453d2664af
@ -21,26 +21,25 @@
|
|||||||
}
|
}
|
||||||
} %}
|
} %}
|
||||||
|
|
||||||
<div class='alert alert--{{level}}' role='{{role}}' aria-live='{{levels.get(level).get('tone')}}'>
|
<div class='usa-alert usa-alert-{{level}}' role='{{role}}' aria-live='{{levels.get(level).get('tone')}}'>
|
||||||
{{ Icon(levels.get(level).get('icon'), classes='alert__icon icon--large') }}
|
|
||||||
|
|
||||||
<div class='alert__content'>
|
<div class='usa-alert-body'>
|
||||||
{% if vue_template %}
|
{% if vue_template %}
|
||||||
<h2 class='alert__title' v-html='title'></h2>
|
<h2 class='usa-alert-heading' v-html='title'></h2>
|
||||||
{% else %}
|
{% else %}
|
||||||
<h2 class='alert__title'>{{title}}</h2>
|
<h2 class='usa-alert-heading'>{{title}}</h2>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if message %}
|
{% if message %}
|
||||||
<div class='alert__message'>{{ message | safe }}</div>
|
<div class='usa-alert-text'>{{ message | safe }}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if caller %}
|
{% if caller %}
|
||||||
<div class='alert__message'>{{ caller() }}</div>
|
<div class='usa-alert-text'>{{ caller() }}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if fragment %}
|
{% if fragment %}
|
||||||
<div class='alert__message'>
|
<div class='usa-alert-text'>
|
||||||
{% include fragment %}
|
{% include fragment %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user