Default Card title tag to 'p' when there is no textual content

Created on 3 May 2024, 7 months ago
Updated 13 May 2024, 6 months ago

Problem

For accessibility reasons, if a card component only contains a title and no textual content, then there is no need for a heading tag, as there is no content to structure.

Proposed resolution

Detect the presence of a textual content (description, content, detail, tags/badges, detail_end, footer) before setting title_tag.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇫🇷France spryah

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