{% macro govukErrorSummary(params) %}
{# Keep the role="alert" in a seperate child container to prevent a race condition between the focusing js at the alert, resulting in information getting missed in screen reader announcements #}

{{ params.titleHtml | safe if params.titleHtml else params.titleText }}

{% if caller or params.descriptionHtml or params.descriptionText %}

{{ caller() if caller else (params.descriptionHtml | safe if params.descriptionHtml else params.descriptionText) }}

{% endif %}
{% endmacro %}