You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(design): combine host ARIA with input errors #602
#523 forwards host ARIA attributes to the inner control of ecc-utils-design-input and -textarea. Since #576, both components also reference their own error message (aria-describedby="error") and set aria-invalid from the invalid and error properties. The two don't combine yet:
A host aria-describedby replaces the component's own error reference. Where the browser supports element references (ariaDescribedByElements), the built-in error message is then no longer announced.
A host aria-invalid="false" overrides the invalid state implied by invalid or a non-empty error.
What to do
Add the host's description references to the component's own error reference, so that both are announced.
Treat the control as invalid if either the host's aria-invalid or the invalid/error properties say so.
Add tests for both cases, in both components, and in the fallback path without element references.
Done when
With error set and a host aria-describedby, the inner control describes both.
With error set and a host aria-invalid="false", the inner control is invalid.
Tests and the docs (attribute forwarding section) cover both.
Thanks @salihudickson, confirmed: #523 (merged on 22 Nov) covers both points. attribute-forwarding.ts now adds the host's aria-describedby references to the component's own error reference instead of replacing it, and treats the host's aria-invalid and the invalid/error properties as additive. The tests "combines the consumer description with the built-in error reference" and "treats aria-invalid, invalid, and error as additive signals" in attribute-forwarding.test.ts cover both components, the fallback path has its own tests, and the input and textarea docs describe it. Closing as done.
Activity
salihudickson commentedon Nov 21, 2026
@uniqueg, #523 covers this. Please check it out.
uniqueg commentedon Nov 23, 2026
Thanks @salihudickson, confirmed: #523 (merged on 22 Nov) covers both points.
attribute-forwarding.tsnow adds the host'saria-describedbyreferences to the component's ownerrorreference instead of replacing it, and treats the host'saria-invalidand theinvalid/errorproperties as additive. The tests "combines the consumer description with the built-in error reference" and "treats aria-invalid, invalid, and error as additive signals" inattribute-forwarding.test.tscover both components, the fallback path has its own tests, and the input and textarea docs describe it. Closing as done.