From 3fc8e239136e9d1f40a9a85de1bafa8e7634e2e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raimund=20Schl=C3=BC=C3=9Fler?= Date: Tue, 9 Aug 2022 12:35:12 +0200 Subject: [PATCH] Add aria-label to single action button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Raimund Schlüßler --- src/components/Actions/Actions.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Actions/Actions.vue b/src/components/Actions/Actions.vue index 56a56f6d85..2c35fbe330 100644 --- a/src/components/Actions/Actions.vue +++ b/src/components/Actions/Actions.vue @@ -719,7 +719,7 @@ export default { firstAction?.data?.class, ], attrs: { - 'aria-label': firstAction?.componentOptions?.propsData?.ariaLabel, + 'aria-label': firstAction?.componentOptions?.propsData?.ariaLabel || firstAction?.componentOptions?.children?.[0]?.text, }, props: { // If it has a title, we use a secondary button