Closed (fixed)
Project:
UI Suite DSFR
Version:
1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Aug 2026 at 22:39 UTC
Updated:
23 Aug 2026 at 23:10 UTC
Jump to comment: Most recent
Our modal renders <h1 class="fr-modal__title"> while upstream uses <h2> (checked in the 1.14.4 and 1.15.1 examples: modal, transcription, theme modal). A modal should not add a second h1 to the page. Spotted while working on #3615328.
Add a title_tag prop to the modal component, default h2, same approach as summary. Typography does not change (fr-modal__title is styled by class), only the document outline moves. Sites relying on the h1 can set title_tag: h1.
Worth a line in the release notes.
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
just_like_good_vibesComment #5
just_like_good_vibes