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.

Screenshot 2024-07-04 at 11.35.44.png

So to solve the issue we need:

  1. Enable button
  2. Validate form on button submit
Edited Sep 04, 2024 by Nataliia Radina
Assignee Loading
Time tracking Loading