From f795fb8d3683e39c50122769ac9bc1b7cde4f0e8 Mon Sep 17 00:00:00 2001 From: Nicolas Langle Date: Fri, 25 Apr 2025 15:06:18 +0200 Subject: [PATCH] fix (theme): add button link attr role --- inc/Helpers/Formatting/Link.php | 1 + 1 file changed, 1 insertion(+) diff --git a/inc/Helpers/Formatting/Link.php b/inc/Helpers/Formatting/Link.php index 3e3ee16a..2a138333 100644 --- a/inc/Helpers/Formatting/Link.php +++ b/inc/Helpers/Formatting/Link.php @@ -180,6 +180,7 @@ function get_the_link( array $attributes, array $settings = [] ): string { $link_markup = ''; $attributes['data-seo-click'] = 'true'; $attributes['type'] = 'button'; + $attributes['role'] = 'link'; $attributes['data-href'] = $attributes['href']; $attributes['data-rel'] = $attributes['rel']; $attributes['data-target'] = $attributes['target'];