Skip to content

Commit

Permalink
Add aria-label on Preview btn in image actions container
Browse files Browse the repository at this point in the history
  • Loading branch information
Lupe Camacho authored and Lupe Camacho committed Feb 14, 2024
1 parent 9259bb8 commit d337b8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/elements/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -2557,6 +2557,7 @@ public function getPreviewHtml(): string
$imageButtonHtml .= Html::button(Craft::t('app', 'Preview'), [
'id' => 'preview-btn',
'class' => ['btn', 'preview-btn'],
'aria-label' => Craft::t('app', 'Preview'),
]);

$previewBtnId = $view->namespaceInputId('preview-btn');
Expand Down

0 comments on commit d337b8a

Please sign in to comment.