- Issue created by @pdureau
- Status changed to Needs review
over 1 year ago 2:52pm 2 March 2023 - Status changed to Fixed
over 1 year ago 7:40pm 8 March 2023 - Status changed to Fixed
over 1 year ago 10:00pm 14 March 2023
"Responsive media" was named like that because of the documentation page title, bu the component was renamed "Content media" (or "Media content" in the new documentation: https://www.systeme-de-design.gouv.fr/elements-d-interface/composants/co...
Renaming looks trivial, but is not an easy task because we initially did the mistake of not following the markup CSS class naming for the machine name:
<figure class="fr-content-media fr-content-media--lg" role="group" aria-label="© Légende de l‘image">
<div class="fr-content-media__img">
<img src="/img/placeholder.16x9.png" class="fr-responsive-img" alt="[À MODIFIER | texte alternatif de l’image]" />
<!-- L’alternative de l’image (attribut alt) doit toujours être présent, sa valeur peut-être vide (image n’apportant pas de sens supplémentaire au contexte) ou non (porteuse de texte ou apportant du sens) selon votre contexte -->
</div>
<figcaption class="fr-content-media__caption">© Légende de l‘image</figcaption>
</figure>
Yes, this is a breaking change.
Fixed
1.0
Code