In header component, service_title is a slot, but it is used in a HTML attributes:
<a href="{{ home_url|default('/') }}" title="{{ 'Homepage'|t }} - {{ service_title }} - {{ logo_text }}">
<p class="fr-header__service-title">{{ service_title }}</p>
</a>
This is not possible for 2 reasons;
- not the expected data type/structure
- breaks the visual display builders (like layout builder)
What do we do?
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | Header-service_title-is-not-a-slot-3490540.patch | 1015 bytes | niharika.s |
Issue fork ui_suite_dsfr-3490540
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
niharika.s commentedI have applied the changes in pattern-header.html.twig please review and let me know if any other changes required.
Comment #3
pdureau commentedniharika patch is not OK because:
Comment #4
just_like_good_vibesi will take it
Comment #7
just_like_good_vibes