<!-- Alert -->
<div class="alert" id="alert-1" data-js-alert data-time="2019-10-18 14:52:4" role="alert" aria-labelledby="alert-1__title" aria-describedby="alert-1__description" tabindex="-1" aria-atomic="true">
    <div class="fw-container">
        <div class="alert__inner">
            <div class="alert__header">
                <h2 class="alert__title" id="alert-1__title" tabindex="-1">Lorem ipsum dolor sit amet</h2>
            </div>
            <div class="alert__body">
                <div class="alert__description typography" id="alert-1__description">
                    <p>Aenean massa. Cum <strong>sociis natoque</strong> penatibus et magnis dis <a href="#">parturient montes</a>, nascetur ridiculus mus. <em>Donec quam felis</em>, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim.</p>
                </div>
            </div>
            <div class="alert__close">

                <button class="button-bordered
 				alert__close-button" id="alert-1__close-button" data-js-alert-close-button="" aria-labelledby="alert-1__close-button alert-1__title">
                    <span class="button-bordered__inner"> <span class="button-bordered__label">Close</span>
                        <span class="button-bordered__icon" aria-hidden="true"><svg class="icon icon--close">
                                <use href="/images/icons.svg?1.0.0#close" />
                            </svg></span>
                    </span>
                </button>
            </div>
        </div>
    </div>
</div>
<!-- END: Alert -->
{#
	{% include '@component-alert' with {
		published: '2019-10-18 14:52:4',
		title: 'Title',
		description: '<p>Description.</p>'
	} %}
#}

{% set id = uniqid('alert') %}
{% set heading_level = heading_level ?? 2 %}
{% set heading_tag = 'h' ~ (heading_level) %}

<!-- Alert -->
<div
	class="alert"
	id="{{ id }}"
	data-js-alert
	data-time="{{ published }}"
	role="alert"
	aria-labelledby="{{ id ~ '__title' }}"
	aria-describedby="{{ id ~ '__description' }}"
	tabindex="-1"
	aria-atomic="true"
>
	<div class="fw-container">
		<div class="alert__inner">
			<div class="alert__header">
				<{{ heading_tag }} class="alert__title" id="{{ id ~ '__title' }}" tabindex="-1">
					{{- title -}}
				</{{ heading_tag }}>
			</div>
			<div class="alert__body">
				<div class="alert__description typography" id="{{ id ~ '__description' }}">
					{{ description }}
				</div>
			</div>
			<div class="alert__close">
				{% include '@partial-button' with {
					classes: {
						base: 'button-bordered',
						utility: 'alert__close-button'
					},
					id: id ~ '__close-button',
					attributes: {
						'data-js-alert-close-button': '',
						'aria-labelledby': id ~ '__close-button ' ~ id ~ '__title'
					},
					title: 'Close',
					icon: 'close'
				} only %}
			</div>
		</div>
	</div>
</div>
<!-- END: Alert -->

No notes defined.