Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Ajoute la date de mise à jour aux carte d'actu #3509

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@
align-self: flex-end;
@include utilities.text-small;
}
& time:empty {
visibility: hidden;
// NOTE (GAFI 17-12-2024): equivalent à 1lh dans ce cas précis mais meilleur support
height: 1.2em;
}

& a {
margin-top: 1.25rem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function ActualiteCard({ actualite, headingLevel = 'h2', classNam
height={180} />
)}
<Card.Content className={styles.content}>
{actualite.dateMiseAJour && <Date date={actualite.dateMiseAJour} />}
{actualite.dateMiseAJour ? <Date date={actualite.dateMiseAJour} /> : <time></time>}
<Card.Title className={styles.title} titleAs={headingLevel}>{actualite.titre}</Card.Title>
<p>{extrait}</p>
<Link appearance={'asQuaternaryButton'} href={actualite.link}>
Expand Down