@vaadin/radio-group 23.1.4 → 23.1.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/radio-group",
3
- "version": "23.1.4",
3
+ "version": "23.1.7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,16 +36,16 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@polymer/polymer": "^3.0.0",
39
- "@vaadin/component-base": "^23.1.4",
40
- "@vaadin/field-base": "^23.1.4",
41
- "@vaadin/vaadin-lumo-styles": "^23.1.4",
42
- "@vaadin/vaadin-material-styles": "^23.1.4",
43
- "@vaadin/vaadin-themable-mixin": "^23.1.4"
39
+ "@vaadin/component-base": "~23.1.7",
40
+ "@vaadin/field-base": "~23.1.7",
41
+ "@vaadin/vaadin-lumo-styles": "~23.1.7",
42
+ "@vaadin/vaadin-material-styles": "~23.1.7",
43
+ "@vaadin/vaadin-themable-mixin": "~23.1.7"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@esm-bundle/chai": "^4.3.4",
47
47
  "@vaadin/testing-helpers": "^0.3.2",
48
48
  "sinon": "^13.0.2"
49
49
  },
50
- "gitHead": "0a82302064f1276a000f0cbd810076539407d133"
50
+ "gitHead": "879a4e5e6a245809bafa0ef2b5cdb24aef72565d"
51
51
  }
@@ -248,6 +248,23 @@ class RadioGroup extends FieldMixin(
248
248
  }
249
249
  }
250
250
 
251
+ /**
252
+ * Override an observer from `FieldMixin`.
253
+ *
254
+ * @param {boolean} invalid
255
+ * @protected
256
+ * @override
257
+ */
258
+ _invalidChanged(invalid) {
259
+ super._invalidChanged(invalid);
260
+
261
+ if (invalid) {
262
+ this.setAttribute('aria-invalid', 'true');
263
+ } else {
264
+ this.removeAttribute('aria-invalid');
265
+ }
266
+ }
267
+
251
268
  /**
252
269
  * @param {number} index
253
270
  * @private