@vaadin/a11y-base
Advanced tools
Comparing version 24.1.0-alpha9 to 24.1.0-beta1
{ | ||
"name": "@vaadin/a11y-base", | ||
"version": "24.1.0-alpha9", | ||
"version": "24.1.0-beta1", | ||
"publishConfig": { | ||
@@ -35,3 +35,3 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/component-base": "24.1.0-alpha9", | ||
"@vaadin/component-base": "24.1.0-beta1", | ||
"lit": "^2.0.0" | ||
@@ -44,3 +44,3 @@ }, | ||
}, | ||
"gitHead": "db4fe44603a6702b85b0da2a6d033ddf8ffea5c4" | ||
"gitHead": "f0ddb6576073a6af05ab29867bc5ec82e334f9d7" | ||
} |
@@ -23,12 +23,2 @@ /** | ||
/** | ||
* `true` if the target element is the host component itself, `false` otherwise. | ||
* | ||
* @return {boolean} | ||
* @private | ||
*/ | ||
get __isGroupField() { | ||
return this.__target === this.host; | ||
} | ||
/** | ||
* Sets a target element to which ARIA attributes are added. | ||
@@ -154,6 +144,3 @@ * | ||
__setErrorIdToAriaAttribute(errorId, oldErrorId) { | ||
// For groups, add all IDs to aria-labelledby rather than aria-describedby - | ||
// that should guarantee that it's announced when the group is entered. | ||
const ariaAttribute = this.__isGroupField ? 'aria-labelledby' : 'aria-describedby'; | ||
setAriaIDReference(this.__target, ariaAttribute, { newId: errorId, oldId: oldErrorId, fromUser: false }); | ||
setAriaIDReference(this.__target, 'aria-describedby', { newId: errorId, oldId: oldErrorId, fromUser: false }); | ||
} | ||
@@ -167,6 +154,3 @@ | ||
__setHelperIdToAriaAttribute(helperId, oldHelperId) { | ||
// For groups, add all IDs to aria-labelledby rather than aria-describedby - | ||
// that should guarantee that it's announced when the group is entered. | ||
const ariaAttribute = this.__isGroupField ? 'aria-labelledby' : 'aria-describedby'; | ||
setAriaIDReference(this.__target, ariaAttribute, { newId: helperId, oldId: oldHelperId, fromUser: false }); | ||
setAriaIDReference(this.__target, 'aria-describedby', { newId: helperId, oldId: oldHelperId, fromUser: false }); | ||
} | ||
@@ -173,0 +157,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
99055
2608
+ Added@vaadin/component-base@24.1.0-beta1(transitive)
- Removed@vaadin/component-base@24.1.0-alpha9(transitive)