@vaadin/field-base
Advanced tools
Comparing version
{ | ||
"name": "@vaadin/field-base", | ||
"version": "24.6.0", | ||
"version": "24.6.1", | ||
"publishConfig": { | ||
@@ -35,12 +35,12 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/a11y-base": "~24.6.0", | ||
"@vaadin/component-base": "~24.6.0", | ||
"@vaadin/a11y-base": "~24.6.1", | ||
"@vaadin/component-base": "~24.6.1", | ||
"lit": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@vaadin/chai-plugins": "~24.6.0", | ||
"@vaadin/testing-helpers": "^1.0.0", | ||
"@vaadin/chai-plugins": "~24.6.1", | ||
"@vaadin/testing-helpers": "^1.1.0", | ||
"sinon": "^18.0.0" | ||
}, | ||
"gitHead": "c0b38aa981494d04fac64da35aa3890ad72551ea" | ||
"gitHead": "858d4220653a0603ce9c36da054889eb42ceb327" | ||
} |
@@ -6,2 +6,3 @@ /** | ||
*/ | ||
import { announce } from '@vaadin/a11y-base/src/announce.js'; | ||
import { SlotChildObserveController } from '@vaadin/component-base/src/slot-child-observe-controller.js'; | ||
@@ -112,8 +113,6 @@ | ||
// Role alert will make the error message announce immediately | ||
// as the field becomes invalid | ||
if (hasError) { | ||
errorNode.setAttribute('role', 'alert'); | ||
} else { | ||
errorNode.removeAttribute('role'); | ||
// Assertive mode ensures VoiceOver reads | ||
// the error message on commit with Enter. | ||
announce(errorMessage, { mode: 'assertive' }); | ||
} | ||
@@ -120,0 +119,0 @@ } |
89633
02317
-0.04%Updated