Skip to content

Commit e7233eb

Browse files
Liam Morlandsylus
authored andcommitted
Issue #3356385 by Liam Morland: Empty label can lead to empty 'h3', invalid HTML
1 parent 87cc2b0 commit e7233eb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

templates/block/block--footer--gcweb--wxt-bootstrap-footer-contextual-fr.html.twig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@
4242
<div class="gc-contextual">
4343
<nav{{ attributes.addClass(classes) }}>
4444
{{ title_prefix }}
45-
<h3>{{ label }}</h3>
45+
{% if label %}
46+
<h3>{{ label }}</h3>
47+
{% endif %}
4648
{{ title_suffix }}
4749
{% block content %}
4850
<ul class="list-unstyled colcount-sm-2 colcount-md-3">

templates/block/block--footer--gcweb--wxt-bootstrap-footer-contextual.html.twig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@
4242
<div class="gc-contextual">
4343
<nav{{ attributes.addClass(classes) }}>
4444
{{ title_prefix }}
45-
<h3>{{ label }}</h3>
45+
{% if label %}
46+
<h3>{{ label }}</h3>
47+
{% endif %}
4648
{{ title_suffix }}
4749
{% block content %}
4850
<ul class="list-unstyled colcount-sm-2 colcount-md-3">

0 commit comments

Comments
 (0)