Skip to content

Commit

Permalink
Merge pull request #1234 from equalizedigital/SteveJonesDev/a11y-fixes
Browse files Browse the repository at this point in the history
A11y fixes
  • Loading branch information
SteveJonesDev authored May 22, 2024
2 parents 47bd6c7 + 520413e commit da40871
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions inc/loop.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,14 +188,15 @@ function eqd_single_header() {
<?php endif; ?>

<?php
$featured_image_id = get_post_thumbnail_id( get_the_ID() );
$featured_image_id = get_post_thumbnail_id( get_the_ID() );
$featured_image_alt = get_post_meta( $featured_image_id, '_wp_attachment_image_alt', true );
$featured_image = get_the_post_thumbnail_url( get_the_ID() );
$featured_image = get_the_post_thumbnail_url( get_the_ID() );
if ( $featured_image ) {
?>
<?php echo '<img loading="lazy" src="' . esc_url( $featured_image ) . '" alt="' . esc_attr( $featured_image_alt ) . '" />'; ?>
<?php
} ?>
}
?>
</span>
<?php endif; ?>

Expand Down
2 changes: 1 addition & 1 deletion template-parts/blocks/resource-links/resource-links.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
continue;
}
?>
<img src="<?php echo esc_url( $icon ); ?>" />
<img src="<?php echo esc_url( $icon ); ?>" alt="" aria-hidden="true" />
<?php echo esc_url( $resource_select_link ); ?>
<?php
}
Expand Down
2 changes: 1 addition & 1 deletion template-parts/blocks/tabbed-content/tabbed-content.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class="
echo '</ul>';
}
?>
<button class="tablet_chevron">
<button class="tablet_chevron" aria-label="scroll tabs">
<svg xmlns="http://www.w3.org/2000/svg" width="97" height="91" viewBox="0 0 97 91" fill="none">
<rect x="97" y="91" width="97" height="91" transform="rotate(-180 97 91)" fill="url(#paint0_linear_1229_724)"/>
<path d="M76.6211 53.2427L84.2424 45.6213L76.6211 38" stroke="white" stroke-linecap="round"/>
Expand Down

0 comments on commit da40871

Please sign in to comment.