-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add disabled-buttons-bad-accessibility til
- Loading branch information
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
date: 2023-11-10 | ||
--- | ||
|
||
# Disabled buttons are bad for accessibility | ||
|
||
#til that disabled buttons are potentially bad for accessibility. | ||
|
||
I realized long ago that disabled buttons can be bad for UX but I just saw Chris Ferdinandi's post [Don't Disable Buttons](https://gomakethings.com/dont-disable-buttons/), and learned that disabled buttons aren't focusable which means they don't work well with screen readers or navigating with the keyboard. | ||
|
||
I usually recommend against disabling form submit buttons when there are validation errors because the user has no feedback as to _why_ it's disabled, but Chris gives the example of disabling while the form is being submitted (which I've probably done in the past) and he goes into detail about the issues with this approach and a good alternative. |