[5.0.x-alpha2] Add condition for title display in Hero component

Created on 27 February 2025, 10 days ago

Problem/Motivation

If title slot is empty it prints anyway the heading html element.

We don't want that ...

Proposed resolution

In hero.twig, add condition

{% if title %}
<h{{ heading_level }} class="text-5xl font-bold">{{ title }}</h{{ heading_level }}>
{% endif %}
📌 Task
Status

Active

Version

5.0

Component

Code

Created by

🇫🇷France G4MBINI Bègles

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024