From 5c48485ebbc873790b5acfe57fea6895b5f24955 Mon Sep 17 00:00:00 2001 From: Remko Huisman <43807324+remko48@users.noreply.github.com> Date: Mon, 16 Oct 2023 09:04:18 +0200 Subject: [PATCH] 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 2b96420..d9ab059 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.14: + - 2.2.13: - 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 d83e0c7..3256455 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@conduction/components", - "version": "2.2.14", + "version": "2.2.13", "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 ed6de4a..41cf75f 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"]').forEach((element: any) => { + document.querySelectorAll('[class*="a11yText-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"]').forEach((element: any) => { + document.querySelectorAll('[class*="a11yText-A11yText"]').forEach((element: any) => { if (element.role !== "presentation") { element.setAttribute("role", "presentation"); }