New framework/edit framework button should be enabled, validation should happen on submit
Background
That goes against Pajamas guidance. We’re supposed to keep the button enabled and throw an error to communicate what specifically needs to change.
By default a submit button is enabled. Do not use a disabled submit button to visualize form validation or if a change is incomplete. A disabled submit button can be problematic in a form for a variety of reasons:
- There is no mechanism to attempt to proceed or remediate unknown errors.
- A disabled button can be missed by a screen reader, leaving a user unsure of what to do next.
- Disabled elements typically have lower contrast, which are difficult to distinguish for those with visual impairments.
So to solve the issue we need:
- Enable button
- Validate form on button submit
Edited by Nataliia Radina
