Skip to content

Commit

Permalink
Revert "feature/XW-87/select-WCAG"
Browse files Browse the repository at this point in the history
  • Loading branch information
remko48 authored Oct 16, 2023
1 parent 9c5d9df commit 5c48485
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions src/components/formFields/select/select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down Expand Up @@ -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");
}
Expand Down

0 comments on commit 5c48485

Please sign in to comment.