Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Meta issue: #1980004: [meta] Creating Dream Markup
Issue based on: #1898436: overlay.module - Convert PHPTemplate templates to Twig
Questions:
Can we please remove all the Id's?
Please? :)
Markup proposal:
<div id="overlay"{{ attributes }}>
<div class="overlay-titlebar clearfix">
<div class="overlay-title-wrapper clearfix">
<h3 class="overlay-title"{{ title_attributes }}>{{ title }}</h3>
</div>
<a class="overlay-close" href="#"><span class="element-invisible">{{ 'Close overlay'|t }}</span></a>
{% if tabs %}
<h2 class="element-invisible">{{ 'Primary tabs'|t }}</h2>
<ul class="overlay-tabs">{{ ender_var(tabs) }}</ul>
{% endif %}
</div>
<div class="overlay-content"{{ content_attributes }}>
{{ page }}
</div>
</div>
Comments
Comment #1
oresh CreditAttribution: oresh commentedmoving to core issues.
Comment #2
mortendk CreditAttribution: mortendk commentedclearfix must die ;)
Comment #3
mcjim CreditAttribution: mcjim commentedClosing as overlay has now been removed from core.