From 41e9bcaa1308e423fabc65b78a836a46748987ce Mon Sep 17 00:00:00 2001 From: Florent Torregrosa <florent.torregrosa@gmail.com> Date: Mon, 17 Mar 2025 14:32:59 +0100 Subject: [PATCH] Issue #3512722 by grimreaper, laetitia_al, pdureau: Button/Link Accessibility: remove role button for normal links --- components/button/button.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/button/button.twig b/components/button/button.twig index 55e7488e..fcf34b22 100644 --- a/components/button/button.twig +++ b/components/button/button.twig @@ -24,7 +24,7 @@ %} {% endif %} - <a{{ attributes.setAttribute('role', 'button') }}>{{ label }}</a> + <a{{ attributes }}>{{ label }}</a> {% else %} {% if disabled %} {% set attributes = attributes.setAttribute('disabled', '') %} -- GitLab