Skip to content

Guidance on using the disabled state for buttons #765

Answered by SiTaggart
pguptaDS asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @pguptaDS

I've cover the constraint first and then the options.

When a button is disabled (or any UI control for that matter) everything about it is rendered unusable. That includes focusing, hovering, and clicking on it. As a result you can't add a tooltip (or anything interactive) to a disabled UI control.

Some options to consider for this use case include:

  • Remove the button entirely. There is a real chance that the absence of a control will never lead to a user asking the question "why can't I do this?". If user research strongly suggests that this is a frequent problem then we can address it with UI messaging, but if it's not, lets no add something to the UI we don't need to.
  • Repl…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by pguptaDS
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants