Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usagov 1919 consistent alert messages update #2028

Merged
merged 6 commits into from
Nov 6, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,14 @@
{{ attach_library('uswds_paragraph_components/uswds-alerts') }}

{# Prints div with classes, and content without Width and Background. #}
<div{{ attributes.addClass(classes) }}>
<div class="usa-alert__body">
<div{{ attributes.addClass(classes) }} role="region" aria-labelledby="usa-alert--1__heading">
<div class="usa-alert__body">
{% if not paragraph.field_alert_title.isempty %}
<div id="usa-alert--1__heading">
<span class="usa-alert__a11y-label visually-hidden" id="usa-alert--1__a11y-label"> {{ alert_status }} </span>
<h2 class="usa-alert__heading">{{ content.field_alert_title }}</h2>
{% endif %}
</div>
{% endif %}
{{ content.field_alert_body }}
</div>
</div>
Loading