Skip to content

Commit

Permalink
Tweak: Add role="button to back to top link
Browse files Browse the repository at this point in the history
  • Loading branch information
tomusborne committed Jul 2, 2024
1 parent 0f65f76 commit ed9ed4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/structure/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function generate_back_to_top() {
echo apply_filters( // phpcs:ignore
'generate_back_to_top_output',
sprintf(
'<a title="%1$s" aria-label="%1$s" rel="nofollow" href="#" class="generate-back-to-top" data-scroll-speed="%2$s" data-start-scroll="%3$s">
'<a title="%1$s" aria-label="%1$s" rel="nofollow" href="#" class="generate-back-to-top" data-scroll-speed="%2$s" data-start-scroll="%3$s" role="button">
%5$s
</a>',
esc_attr__( 'Scroll back to top', 'generatepress' ),
Expand Down

0 comments on commit ed9ed4e

Please sign in to comment.