Skip to content
Snippets Groups Projects

Issue #3445146 by spryah: default tile title tag to P if there is no other textual content

1 file
+ 5
1
Compare changes
  • Side-by-side
  • Inline
@@ -31,7 +31,11 @@
{% set attributes = attributes.addClass('fr-tile--' ~ background|lower) %}
{% endif %}
{% set title_tag = title_tag|default('h3') %}
{% if description or tags_badges or detail %}
{% set title_tag = title_tag|default('h3') %}
{% else %}
{% set title_tag = 'p' %}
{% endif %}
{% if title %}
<div{{ attributes.addClass('fr-tile') }}>
Loading