Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291521

Remove the DIV tag around block content

$
0
0

Remove the div around block content - and make sure this doesn't break any CSS defined in core modules.

Current block code:

<div class="block {{ attributes.class }}"{{ attributes }}>
  {{ title_prefix }}
  {% if label %}
    <h2{{ title_attributes }}>{{ label }}</h2>
  {% endif %}
  {{ title_suffix }}

  <div class="content {{ content_attributes.class }}"{{ content_attributes }}>
   {{ content }}
  </div>
</div>

Proposed change:

<div class="block {{ attributes.class }}"{{ attributes }}>
  {{ title_prefix }}
  {% if label %}
    <h2{{ title_attributes }}>{{ label }}</h2>
  {% endif %}
  {{ title_suffix }}

  {{ content }}
</div>

Viewing all articles
Browse latest Browse all 291521

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>