From 75177852a1cbe9f96668853c37fd91fb8038a67f Mon Sep 17 00:00:00 2001 From: lfarrell Date: Mon, 11 Dec 2023 08:24:06 -0500 Subject: [PATCH] Remove aria-hidden attribute, as the element is visible, which causes an accessibility error. --- .../arclight/index_metadata_field_component.html.erb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/components/arclight/index_metadata_field_component.html.erb b/app/components/arclight/index_metadata_field_component.html.erb index 727904f2d..a4ffbae49 100644 --- a/app/components/arclight/index_metadata_field_component.html.erb +++ b/app/components/arclight/index_metadata_field_component.html.erb @@ -4,8 +4,7 @@ <%= tag.dd(class: @classes + ['truncator'], data: { controller: 'arclight-truncate' }) do %> <%= tag.div @field.render, class: 'content', data: { arclight_truncate_target: 'content' } %> <%= button_tag(type: :button, class: 'btn btn-sm btn-link px-0', - data: { action: 'click->arclight-truncate#trigger' }, - aria: { hidden: true }) do %> + data: { action: 'click->arclight-truncate#trigger' }) do %> <%= tag.span t('arclight.truncation.view_more'), class: 'view-more' %> <%= tag.span t('arclight.truncation.view_less'), class: 'view-less' %> <%= tag.span(class: 'icon') %>