@vaadin/a11y-base 24.1.0-alpha9 → 24.1.0-beta2

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/a11y-base",
3
- "version": "24.1.0-alpha9",
3
+ "version": "24.1.0-beta2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -32,7 +32,7 @@
32
32
  "dependencies": {
33
33
  "@open-wc/dedupe-mixin": "^1.3.0",
34
34
  "@polymer/polymer": "^3.0.0",
35
- "@vaadin/component-base": "24.1.0-alpha9",
35
+ "@vaadin/component-base": "24.1.0-beta2",
36
36
  "lit": "^2.0.0"
37
37
  },
38
38
  "devDependencies": {
@@ -40,5 +40,5 @@
40
40
  "@vaadin/testing-helpers": "^0.4.0",
41
41
  "sinon": "^13.0.2"
42
42
  },
43
- "gitHead": "db4fe44603a6702b85b0da2a6d033ddf8ffea5c4"
43
+ "gitHead": "83536fcc7d6661a593b2713cb99a8cb74f2fd868"
44
44
  }
@@ -19,16 +19,6 @@ export class FieldAriaController {
19
19
  this.__required = false;
20
20
  }
21
21
 
22
- /**
23
- * `true` if the target element is the host component itself, `false` otherwise.
24
- *
25
- * @return {boolean}
26
- * @private
27
- */
28
- get __isGroupField() {
29
- return this.__target === this.host;
30
- }
31
-
32
22
  /**
33
23
  * Sets a target element to which ARIA attributes are added.
34
24
  *
@@ -150,10 +140,7 @@ export class FieldAriaController {
150
140
  * @private
151
141
  */
152
142
  __setErrorIdToAriaAttribute(errorId, oldErrorId) {
153
- // For groups, add all IDs to aria-labelledby rather than aria-describedby -
154
- // that should guarantee that it's announced when the group is entered.
155
- const ariaAttribute = this.__isGroupField ? 'aria-labelledby' : 'aria-describedby';
156
- setAriaIDReference(this.__target, ariaAttribute, { newId: errorId, oldId: oldErrorId, fromUser: false });
143
+ setAriaIDReference(this.__target, 'aria-describedby', { newId: errorId, oldId: oldErrorId, fromUser: false });
157
144
  }
158
145
 
159
146
  /**
@@ -162,10 +149,7 @@ export class FieldAriaController {
162
149
  * @private
163
150
  */
164
151
  __setHelperIdToAriaAttribute(helperId, oldHelperId) {
165
- // For groups, add all IDs to aria-labelledby rather than aria-describedby -
166
- // that should guarantee that it's announced when the group is entered.
167
- const ariaAttribute = this.__isGroupField ? 'aria-labelledby' : 'aria-describedby';
168
- setAriaIDReference(this.__target, ariaAttribute, { newId: helperId, oldId: oldHelperId, fromUser: false });
152
+ setAriaIDReference(this.__target, 'aria-describedby', { newId: helperId, oldId: oldHelperId, fromUser: false });
169
153
  }
170
154
 
171
155
  /**