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
Inputs with errors should have an aria-invalid="true" attribute, as well as aria-errormessage, whose value is the id of the element with the error message.
Current output of ui_input
<labelfor="profile_form_street_address">
Street address
</label><inputid="profile_form_street_address"
maxlength="255"
name="profile_form[street_address]"
type="text"
value=""
><spanclass="u-fg-warning"
phx-feedback-for="profile_form[street_address]"
>
can't be blank
</span>
Improved output of ui_input
<labelfor="profile_form_street_address">
Street address
</label><inputid="profile_form_street_address"
maxlength="255"
name="profile_form[street_address]"
type="text"
value=""
aria-invalid="true"
aria-errormessage="profile_form_street_address-help-text"
><spanid="profile_form_street_address-help-text"
class="u-fg-warning"
phx-feedback-for="profile_form[street_address]"
>
can't be blank
</span>
The text was updated successfully, but these errors were encountered:
Inputs with errors should have an
aria-invalid="true"
attribute, as well asaria-errormessage
, whose value is the id of the element with the error message.Current output of
ui_input
Improved output of
ui_input
The text was updated successfully, but these errors were encountered: