Closed enriqueprieto closed 1 year ago
Awesome!! This really improves accessibility.
Nice!
Hello, @sha256, Will it be possible to merge this pull request so that this great client side validation plugin can have the accessibility feature. Its a humble request to you. It will be a great help as we are using this library
@enriqueprieto will it possible to resolve the conflicts of this branch in case @sha256 decide to merge this.
Merged and published to npm. Thank you @enriqueprieto and @shayanpaul
Thank you @sha256 and @shayanpaul
Improve in
_showError
errorTextElement
fromfield.input
by id.field.input
,aria-describedby
attribute with id error value.field.input
,aria-valid
attribute withtrue
value.errorTextElement
,id
attribute with id error value.errorTextElement
,role
attribute withalert
value.With improves above on
_showError
method, born a requeriment to refactor_removeError
method, the mission is remove attributes added onfield.input
anderrorTextElement
.Refactor in
_removeError
aria-describedby
fromfield.input
.aria-invali
fromfield.input
.id
fromerrorTextElement
.role
fromerrorTextElement
.