Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ui_suite_dsfr
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
ui_suite_dsfr
Merge requests
!78
Issue
#3445146
by spryah: default tile title tag to P if there is no other textual content
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Open
Issue
#3445146
by spryah: default tile title tag to P if there is no other textual content
issue/ui_suite_dsfr-3445146:3445146-default-tile-title
into
1.0.x
Overview
0
Commits
1
Pipelines
0
Changes
1
Open
Issue #3445146 by spryah: default tile title tag to P if there is no other textual content
Sorya
requested to merge
issue/ui_suite_dsfr-3445146:3445146-default-tile-title
into
1.0.x
May 13, 2024
Overview
0
Commits
1
Pipelines
0
Changes
1
Closes
#3445146
0
0
Merge request reports
Compare
1.0.x
1.0.x (HEAD)
and
latest version
latest version
985d767f
1 commit,
May 13, 2024
1 file
+
5
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
templates/patterns/tile/pattern-tile.html.twig
+
5
−
1
View file @ 679bd8a4
Edit in single-file editor
Open in Web IDE
Show full file
@@ -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