Newer
Older
pre-www / src / blocks / alert-bar.twig
<div class="block-{{block.key}} {{block.classes}}">
    <div class="block-{{block.key}}__inner">
        <div>
            <span>{{block.content.excerpt}}</span>
            <button aria-label="Apri modale" data-open-alert-modal>Leggi</button>
        </div>

    </div>
    <div class="block-{{block.key}}-modal" data-alert-modal aria-hidden="true">
        <div class="block-{{block.key}}-modal__overlay" tabindex="-1">
            <div class="block-{{block.key}}-modal__inner" role="dialog" aria-modal="true" aria-labelledby="{{block.content.title}}">
                <button class="block-{{block.key}}-modal__close" data-close-alert-modal aria-label="Chiudi modale"></button>
                {{block.content.modal}}
            </div>
        </div>
    </div>
</div>