@vaadin/a11y-base
Advanced tools
Comparing version 24.2.0-alpha11 to 24.2.0-alpha12
{ | ||
"name": "@vaadin/a11y-base", | ||
"version": "24.2.0-alpha11", | ||
"version": "24.2.0-alpha12", | ||
"publishConfig": { | ||
@@ -35,3 +35,3 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/component-base": "24.2.0-alpha11", | ||
"@vaadin/component-base": "24.2.0-alpha12", | ||
"lit": "^2.0.0" | ||
@@ -44,3 +44,3 @@ }, | ||
}, | ||
"gitHead": "a958207d5f6a09ca0e2dcf9f62194b3f92c8766a" | ||
"gitHead": "854d2809340ef73f765350808bb92ed5c840d147" | ||
} |
@@ -27,8 +27,2 @@ /** |
/** |
* @param {Element | Shadow} node |
* @return {Element | null} |
*/ |
const unwrapHost = (node) => (node ? node.host || unwrapHost(node.parentNode) : null); |
/** |
* @param {?Node} node |
@@ -64,11 +58,10 @@ * @return {boolean} |
if (parent.contains(target)) { |
return target; |
let node = target; |
while (node && node !== parent) { |
if (parent.contains(node)) { |
return target; |
} |
node = node.getRootNode().host; |
} |
const correctedTarget = unwrapHost(target); |
if (correctedTarget && parent.contains(correctedTarget)) { |
return correctedTarget; |
} |
logError(target, 'is not contained inside', parent); |
@@ -115,3 +108,9 @@ return null; |
elementsToKeep.add(el); |
keep(el.parentNode); |
const slot = el.assignedSlot; |
if (slot) { |
keep(slot); |
} |
keep(el.parentNode || el.host); |
}; |
@@ -129,3 +128,5 @@ |
[...parent.children].forEach((node) => { |
const root = parent.shadowRoot; |
const children = root ? [...parent.children, ...root.children] : [...parent.children]; |
children.forEach((node) => { |
// Skip elements that don't need to be hidden |
@@ -132,0 +133,0 @@ if (['template', 'script', 'style'].includes(node.localName)) { |
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
103110
2728
190
9
1
42488
107
+ Added@vaadin/component-base@24.2.0-alpha12(transitive)
- Removed@vaadin/component-base@24.2.0-alpha11(transitive)