@spectrum-web-components/field-label
Advanced tools
Comparing version 0.39.3 to 0.39.4
{ | ||
"name": "@spectrum-web-components/field-label", | ||
"version": "0.39.3", | ||
"version": "0.39.4", | ||
"publishConfig": { | ||
@@ -60,7 +60,7 @@ "access": "public" | ||
"dependencies": { | ||
"@spectrum-web-components/base": "^0.39.3", | ||
"@spectrum-web-components/icon": "^0.39.3", | ||
"@spectrum-web-components/icons-ui": "^0.39.3", | ||
"@spectrum-web-components/reactive-controllers": "^0.39.3", | ||
"@spectrum-web-components/shared": "^0.39.3" | ||
"@spectrum-web-components/base": "^0.39.4", | ||
"@spectrum-web-components/icon": "^0.39.4", | ||
"@spectrum-web-components/icons-ui": "^0.39.4", | ||
"@spectrum-web-components/reactive-controllers": "^0.39.4", | ||
"@spectrum-web-components/shared": "^0.39.4" | ||
}, | ||
@@ -76,3 +76,3 @@ "devDependencies": { | ||
], | ||
"gitHead": "d7840b3a9b99db4de62c44e3fb91b69dec7319af" | ||
"gitHead": "f745c90e8e9ea85ff10be025e058b14cc925ec9f" | ||
} |
@@ -139,2 +139,17 @@ "use strict"; | ||
}); | ||
it('associates via "id" starting with number', async () => { | ||
const test = await fixture( | ||
html` | ||
<div> | ||
<sp-field-label required for="1"></sp-field-label> | ||
<input id="1" /> | ||
</div> | ||
` | ||
); | ||
const el = test.querySelector("sp-field-label"); | ||
const input = test.querySelector("input"); | ||
await elementUpdated(el); | ||
expect(input.hasAttribute("aria-labelledby")); | ||
expect(input.getAttribute("aria-labelledby")).to.equal(el.id); | ||
}); | ||
it("passed clicks to assiciated form element as focus", async () => { | ||
@@ -141,0 +156,0 @@ const test = await fixture( |
Sorry, the diff of this file is not supported yet
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances 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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances in 1 package
139939
1211