From d1790bfeeee0d6f8b522cbef9f94068cc808663b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Busqu=C3=A9?= Date: Fri, 21 Jul 2023 13:03:21 +0200 Subject: [PATCH] Make admin pagination accessible We label the pagination icon wrappers with "aria-label", while hiding the icon itself to screen readers. We also mark as "aria-disable"'d when the first/last page is reached. --- .../ui/table/pagination/component.html.erb | 16 ++++++++-------- .../ui/table/pagination/component.yml | 3 +++ 2 files changed, 11 insertions(+), 8 deletions(-) create mode 100644 admin/app/components/solidus_admin/ui/table/pagination/component.yml diff --git a/admin/app/components/solidus_admin/ui/table/pagination/component.html.erb b/admin/app/components/solidus_admin/ui/table/pagination/component.html.erb index d5fad852a04..67feede010b 100644 --- a/admin/app/components/solidus_admin/ui/table/pagination/component.html.erb +++ b/admin/app/components/solidus_admin/ui/table/pagination/component.html.erb @@ -3,24 +3,24 @@