From 9d127d636ddc527f58cc746c83190468b4160ebe Mon Sep 17 00:00:00 2001 From: Remko Huisman <43807324+remko48@users.noreply.github.com> Date: Mon, 16 Oct 2023 09:09:53 +0200 Subject: [PATCH] Revert "Revert "feature/XW-87/select-WCAG"" --- README.md | 2 +- package.json | 2 +- src/components/formFields/select/select.tsx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d9ab059..2b96420 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ - **Version 2.2 (breaking changes from 2.1.x)** - - 2.2.13: + - 2.2.13/2.2.14: - Updated Textarea and all Input components to allow aria-label. - Updated Select components. - 2.2.12: Updated Select components to WCAG with aria-label and role. diff --git a/package.json b/package.json index 3256455..d83e0c7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@conduction/components", - "version": "2.2.13", + "version": "2.2.14", "description": "React (Gatsby) components used within the Conduction Skeleton Application (and its implementations)", "main": "lib/index.js", "scripts": { diff --git a/src/components/formFields/select/select.tsx b/src/components/formFields/select/select.tsx index 41cf75f..ed6de4a 100644 --- a/src/components/formFields/select/select.tsx +++ b/src/components/formFields/select/select.tsx @@ -86,7 +86,7 @@ export const SelectMultiple = ({ element.setAttribute("role", "presentation"); } }); - document.querySelectorAll('[class*="a11yText-A11yText"]').forEach((element: any) => { + document.querySelectorAll('[class*="a11yText"]').forEach((element: any) => { if (element.role !== "presentation") { element.setAttribute("role", "presentation"); } @@ -205,7 +205,7 @@ export const SelectSingle = ({ element.setAttribute("role", "presentation"); } }); - document.querySelectorAll('[class*="a11yText-A11yText"]').forEach((element: any) => { + document.querySelectorAll('[class*="a11yText"]').forEach((element: any) => { if (element.role !== "presentation") { element.setAttribute("role", "presentation"); }