@aurodesignsystem-dev/auro-formkit 0.0.0-pr1100.0 → 0.0.0-pr1101.0
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.
|
@@ -338,7 +338,13 @@ class AuroRadio extends i$2 {
|
|
|
338
338
|
|
|
339
339
|
updated(changedProperties) {
|
|
340
340
|
if (changedProperties.has('error') || changedProperties.has('validity')) {
|
|
341
|
-
|
|
341
|
+
if (this.error) {
|
|
342
|
+
this.setAttribute('aria-invalid', 'true');
|
|
343
|
+
} else if (this.validity === 'valid') {
|
|
344
|
+
this.setAttribute('aria-invalid', 'false');
|
|
345
|
+
} else {
|
|
346
|
+
this.removeAttribute('aria-invalid');
|
|
347
|
+
}
|
|
342
348
|
}
|
|
343
349
|
|
|
344
350
|
if (changedProperties.has('required')) {
|
|
@@ -313,7 +313,13 @@ class AuroRadio extends i$2 {
|
|
|
313
313
|
|
|
314
314
|
updated(changedProperties) {
|
|
315
315
|
if (changedProperties.has('error') || changedProperties.has('validity')) {
|
|
316
|
-
|
|
316
|
+
if (this.error) {
|
|
317
|
+
this.setAttribute('aria-invalid', 'true');
|
|
318
|
+
} else if (this.validity === 'valid') {
|
|
319
|
+
this.setAttribute('aria-invalid', 'false');
|
|
320
|
+
} else {
|
|
321
|
+
this.removeAttribute('aria-invalid');
|
|
322
|
+
}
|
|
317
323
|
}
|
|
318
324
|
|
|
319
325
|
if (changedProperties.has('required')) {
|
|
@@ -273,7 +273,13 @@ class AuroRadio extends LitElement {
|
|
|
273
273
|
|
|
274
274
|
updated(changedProperties) {
|
|
275
275
|
if (changedProperties.has('error') || changedProperties.has('validity')) {
|
|
276
|
-
|
|
276
|
+
if (this.error) {
|
|
277
|
+
this.setAttribute('aria-invalid', 'true');
|
|
278
|
+
} else if (this.validity === 'valid') {
|
|
279
|
+
this.setAttribute('aria-invalid', 'false');
|
|
280
|
+
} else {
|
|
281
|
+
this.removeAttribute('aria-invalid');
|
|
282
|
+
}
|
|
277
283
|
}
|
|
278
284
|
|
|
279
285
|
if (changedProperties.has('required')) {
|
|
@@ -273,7 +273,13 @@ class AuroRadio extends LitElement {
|
|
|
273
273
|
|
|
274
274
|
updated(changedProperties) {
|
|
275
275
|
if (changedProperties.has('error') || changedProperties.has('validity')) {
|
|
276
|
-
|
|
276
|
+
if (this.error) {
|
|
277
|
+
this.setAttribute('aria-invalid', 'true');
|
|
278
|
+
} else if (this.validity === 'valid') {
|
|
279
|
+
this.setAttribute('aria-invalid', 'false');
|
|
280
|
+
} else {
|
|
281
|
+
this.removeAttribute('aria-invalid');
|
|
282
|
+
}
|
|
277
283
|
}
|
|
278
284
|
|
|
279
285
|
if (changedProperties.has('required')) {
|
package/package.json
CHANGED