From a2139213c733d10c9c7d70ffbc08734908bf9bfb Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Thu, 12 Jan 2023 19:55:22 +0100 Subject: [PATCH] Hide collapse from screenreaders Co-Authored-By: Georg Gadinger --- app/views/shared/_collapse.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/shared/_collapse.html.haml b/app/views/shared/_collapse.html.haml index e2d85384..16ebafe2 100644 --- a/app/views/shared/_collapse.html.haml +++ b/app/views/shared/_collapse.html.haml @@ -1,4 +1,4 @@ -.collapser +.collapser{ aria: { hidden: "true" } } %button.btn.btn-primary.btn-sm.shadow{ data: { collapse_target: "action" } } %span.shown-text= t(".#{type}.hide") %span.collapsed-text= t(".#{type}.show")