extra   space to sr-only

This commit is contained in:
Antoine M 2024-05-16 10:49:26 +02:00
parent 21f720e20e
commit 6be38b9367
3 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ $relatedPostConseil = $relatedThematiqueConseilsQuery->posts[0] ?? null;
<a class="card-thematique__cta hover:text-<?php echo getThematiqueFamilySlug($thematique->slug) ?>" href="<?php echo get_permalink($relatedPostConseil->ID) ?>"> <a class="card-thematique__cta hover:text-<?php echo getThematiqueFamilySlug($thematique->slug) ?>" href="<?php echo get_permalink($relatedPostConseil->ID) ?>">
<?php echo __("En savoir plus ", "homegrade-theme__texte-fonctionnel") ?> <?php echo __("En savoir plus ", "homegrade-theme__texte-fonctionnel") ?>
<span class="sr-only"><?php echo __("sur ", "homegrade-theme__texte-fonctionnel") ?><?php echo $thematique->name ?></span> <span class="sr-only"> &nbsp;<?php echo __("sur ", "homegrade-theme__texte-fonctionnel") ?><?php echo $thematique->name ?></span>
<div class="cta_arrow_button"> <div class="cta_arrow_button">
<img src='<?php echo get_template_directory_uri() ?>/resources/img/graphic-assets/arrow-right-circle.svg' alt=''> <img src='<?php echo get_template_directory_uri() ?>/resources/img/graphic-assets/arrow-right-circle.svg' alt=''>
</div> </div>

View File

@ -30,7 +30,7 @@ $mainThematique = getMainThematique($thematique) ?? null;
<a href=" <?php echo get_the_permalink($post_ID) ?>" class="cta cta--read-more cta--with-arrow-button cta--streched "> <a href=" <?php echo get_the_permalink($post_ID) ?>" class="cta cta--read-more cta--with-arrow-button cta--streched ">
<!-- cta-read-more --> <!-- cta-read-more -->
<span><?php echo __("Lire l'article", 'homegrade-theme__texte-fonctionnel') ?></span> <span><?php echo __("Lire l'article", 'homegrade-theme__texte-fonctionnel') ?></span>
<span class="sr-only"><?php echo $post_title ?></span> <span class="sr-only"> &nbsp;<?php echo $post_title ?></span>
<img class="cta_arrow_button" src='<?php echo get_template_directory_uri() ?>/resources/img/graphic-assets/arrow-right-circle.svg' alt=''> <img class="cta_arrow_button" src='<?php echo get_template_directory_uri() ?>/resources/img/graphic-assets/arrow-right-circle.svg' alt=''>
</a> </a>
</div> </div>

View File

@ -11,7 +11,7 @@
<a href=" <?php echo $args['permalink'] ?>" class="page-card__cta cta cta--read-more cta--with-arrow-button cta--streched "> <a href=" <?php echo $args['permalink'] ?>" class="page-card__cta cta cta--read-more cta--with-arrow-button cta--streched ">
<!-- cta-read-more --> <!-- cta-read-more -->
<span><?php echo __("En savoir plus", 'homegrade-theme__texte-fonctionnel') ?></span> <span><?php echo __("En savoir plus", 'homegrade-theme__texte-fonctionnel') ?></span>
<span class="sr-only"><?php echo $args['title'] ?></span> <span class="sr-only"> &nbsp;<?php echo $args['title'] ?></span>
<img class="cta_arrow_button" src='<?php echo get_template_directory_uri() ?>/resources/img/graphic-assets/arrow-right-circle.svg' alt=''> <img class="cta_arrow_button" src='<?php echo get_template_directory_uri() ?>/resources/img/graphic-assets/arrow-right-circle.svg' alt=''>
</a> </a>
</div> </div>