Resolve "[Accessibility]: Switches should change state on Enter key"

For reviewers:

Switches can be divided in two groups: inside the Formik and stand-alone switches.

  • For stand-alone switches a CommonSwitch component has been implemented. It wraps the standard MUI Switch and adds the Enter key handling
  • The logic of the switches in Formik is being controlled by Formik itself and some cloning has been done by the CommonFormItem component. Therefore formikSwitchProps function has been exteneded, to cover this group of switches.

For QA:

Now all switches in the app should change their state on Enter key.

Closes #2419

Edited by oleksii sukhodolskyi

Merge request reports

Loading
Loading