Skip to content

Commit

Permalink
Merge pull request #16307 from craftcms/a11y/link-field-aria
Browse files Browse the repository at this point in the history
Updates the aria-label attribute in the getLink method
  • Loading branch information
brandonkelly authored Dec 10, 2024
2 parents 5483e70 + a9bc1e5 commit 9e702fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/fields/data/LinkData.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ public function getLink(): Markup
'class' => $this->class,
'id' => $this->id,
'rel' => $this->rel,
'ariaLabel' => $this->ariaLabel,
'aria' => [
'label' => $this->ariaLabel,
],
]);
}

Expand Down

0 comments on commit 9e702fc

Please sign in to comment.