Topic: The explanation for a disabled save button never appears
julesWeb21
asked a week ago
Save is disabled until all required appointment fields are filled. We attached a tooltip explaining what is missing, but it does not reliably appear when hovering the disabled button, and keyboard users cannot reach the explanation at all.
The tooltip text is the only place that lists the unmet conditions. We would like to keep Save unavailable without hiding the reason from people who cannot activate or focus that button. What pattern would you suggest?
Arkadiusz Idzikowski
staff answered a week ago
A natively disabled button cannot be reached through the normal keyboard focus order, so it cannot be the only way to discover the missing requirements. Put the actionable validation guidance beside the affected fields or in a visible form summary.
If you keep a short tooltip as additional help, provide an enabled, focusable help control with an accessible name. Avoid putting the entire explanation only on a hover target around the disabled button. Keep the disabled state on Save until the form actually meets the requirements.
https://mdbootstrap.com/docs/angular/components/tooltips/
https://mdbootstrap.com/docs/angular/components/buttons/
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: MDB5 9.0.0
- Device: Desktop
- Browser: Edge
- OS: Windows 11
- Provided sample code: No
- Provided link: No