Skip to content

Commit 16f91c7

Browse files
authored
Merge pull request #460 from BeAPI/a11y/get-the-link
fix (theme): add button link attr role
2 parents 368acb1 + f795fb8 commit 16f91c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

inc/Helpers/Formatting/Link.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ function get_the_link( array $attributes, array $settings = [] ): string {
180180
$link_markup = '<button %s>%s%s</button>';
181181
$attributes['data-seo-click'] = 'true';
182182
$attributes['type'] = 'button';
183+
$attributes['role'] = 'link';
183184
$attributes['data-href'] = $attributes['href'];
184185
$attributes['data-rel'] = $attributes['rel'];
185186
$attributes['data-target'] = $attributes['target'];

0 commit comments

Comments
 (0)