reverting title order for screen readers

This commit is contained in:
Antoine M 2024-04-02 16:38:54 +02:00
parent 563582355a
commit 2d8830a969
2 changed files with 5 additions and 1 deletions

View File

@ -46,6 +46,10 @@
rounded-xl
mb-4;
}
&__tag,
&__thematique-tag {
order: -1;
}
&__title {
@apply !text-lg font-bold text-secondary mb-1;

View File

@ -14,13 +14,13 @@ $mainThematique = getMainThematique($thematique) ?? null;
<?php echo $post_thumbnail ?>
<div class="card-news__inner">
<div class="card-news__heading">
<h3 class="card-news__title"><?php echo $post_title ?></h3>
<?php if ($news_type) : ?>
<p class="card-news__tag"><?php echo $news_type[0]->name ?></p>
<?php endif; ?>
<?php if ($thematique) : ?>
<p class="card-news__thematique-tag card-news__thematique-tag--<?php echo $mainThematique->slug ?>"><?php echo $thematique->name ?></p>
<?php endif; ?>
<h3 class="card-news__title"><?php echo $post_title ?></h3>
<?php if ($post_date) : ?>
<p class="card-news__post-date card-news__post-date"><?php echo $post_date ?></p>
<?php endif; ?>