Skip to content

Commit

Permalink
Merge pull request #620 from tomusborne/tweak/back-to-top-role
Browse files Browse the repository at this point in the history
Tweak: Add `role="button"` to back to top link
  • Loading branch information
iansvo authored Jul 8, 2024
2 parents fa3d592 + ed9ed4e commit ce30db2
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 ce30db2

Please sign in to comment.