Skip to content
Snippets Groups Projects

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

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