fix(forms): drop HTML5 required on shared inputs; styled inline errors only (MAPPS-277) #301
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
psa-systems/mokosh-apps!301
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/MAPPS-277-styled-required-error"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The shared
Input,Textarea, andSelectpropagatedprops.requiredstraight onto the HTML element, which made the browser pop a native "Please fill out this field" tooltip on every submit attempt. The tooltip rendered outside the app's theme, missed the dark-mode palette entirely, and didn't agree with the styled inline errors the forms already use for server-side / format / range validation. Replace the HTML attribute witharia-requiredso assistive tech still announces the field as required and the visible asterisk in the label still cues sighted users; required-field validation now routes exclusively through the per-form submit handler (PMS-281, MAPPS-281 trim-and-set inline error, MAPPS-282 422 mapping). One change covers every form on every page because all of them mount through these three shared components.#MAPPS-277