@conduction/components 2.2.13 → 2.2.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  - **Version 2.2 (breaking changes from 2.1.x)**
6
6
 
7
- - 2.2.13:
7
+ - 2.2.13/2.2.14:
8
8
  - Updated Textarea and all Input components to allow aria-label.
9
9
  - Updated Select components.
10
10
  - 2.2.12: Updated Select components to WCAG with aria-label and role.
@@ -54,7 +54,7 @@ export const SelectMultiple = ({ id, name, options, errors, control, validation,
54
54
  element.setAttribute("role", "presentation");
55
55
  }
56
56
  });
57
- document.querySelectorAll('[class*="a11yText-A11yText"]').forEach((element) => {
57
+ document.querySelectorAll('[class*="a11yText"]').forEach((element) => {
58
58
  if (element.role !== "presentation") {
59
59
  element.setAttribute("role", "presentation");
60
60
  }
@@ -98,7 +98,7 @@ export const SelectSingle = ({ id, name, options, errors, control, validation, i
98
98
  element.setAttribute("role", "presentation");
99
99
  }
100
100
  });
101
- document.querySelectorAll('[class*="a11yText-A11yText"]').forEach((element) => {
101
+ document.querySelectorAll('[class*="a11yText"]').forEach((element) => {
102
102
  if (element.role !== "presentation") {
103
103
  element.setAttribute("role", "presentation");
104
104
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conduction/components",
3
- "version": "2.2.13",
3
+ "version": "2.2.14",
4
4
  "description": "React (Gatsby) components used within the Conduction Skeleton Application (and its implementations)",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -86,7 +86,7 @@ export const SelectMultiple = ({
86
86
  element.setAttribute("role", "presentation");
87
87
  }
88
88
  });
89
- document.querySelectorAll('[class*="a11yText-A11yText"]').forEach((element: any) => {
89
+ document.querySelectorAll('[class*="a11yText"]').forEach((element: any) => {
90
90
  if (element.role !== "presentation") {
91
91
  element.setAttribute("role", "presentation");
92
92
  }
@@ -205,7 +205,7 @@ export const SelectSingle = ({
205
205
  element.setAttribute("role", "presentation");
206
206
  }
207
207
  });
208
- document.querySelectorAll('[class*="a11yText-A11yText"]').forEach((element: any) => {
208
+ document.querySelectorAll('[class*="a11yText"]').forEach((element: any) => {
209
209
  if (element.role !== "presentation") {
210
210
  element.setAttribute("role", "presentation");
211
211
  }