[beta1] ⚠️ Rename responsive_media to content_media

Created on 2 March 2023, over 1 year ago
Updated 14 March 2023, over 1 year ago

Problem/Motivation

"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>

Proposed resolution

  • ID: responsive_media to content_media
  • LABEL: Responsive Media to Content Media

API changes

Yes, this is a breaking change.

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇫🇷France pdureau Paris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024