From d337b8a246fae5f18d9c27be83643213c8434b6b Mon Sep 17 00:00:00 2001 From: Lupe Camacho Date: Wed, 14 Feb 2024 14:00:31 -0800 Subject: [PATCH] Add aria-label on Preview btn in image actions container --- src/elements/Asset.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/elements/Asset.php b/src/elements/Asset.php index 8ba18e878ef..e172eb3c1fe 100644 --- a/src/elements/Asset.php +++ b/src/elements/Asset.php @@ -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');