Skip to content

Commit

Permalink
Add disabled-buttons-bad-accessibility til
Browse files Browse the repository at this point in the history
  • Loading branch information
bpugh committed Nov 10, 2023
1 parent dc74971 commit a0efe59
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions html/disabled-buttons-bad-accessibility.md
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.

0 comments on commit a0efe59

Please sign in to comment.