Disabled State
UI DesignWhat is a Disabled State
A disabled state shows that an element cannot be used right now. A disabled button, field or option is visible but inactive, and nothing happens when users click it. It may become active once a condition is met, such as filling in required fields.
How a Disabled State looks
- Muted color: Light gray or desaturated
- Lower contrast: Between label and background, but still readable
- No feedback: No hover or pressed effect
- Default cursor: No hand cursor on the web
When to use a Disabled State
Use it when an action is temporarily unavailable and users can see why. Explain what users need to do, for example with helper text near the button. If users cannot tell why a button is disabled, consider leaving it enabled and showing an error message instead.
Disabled State and accessibility
WCAG exempts inactive elements from contrast rules, but users still need to read them. NN/g suggests aria-disabled="true", which keeps the element focusable so screen readers can announce that it is unavailable.
Frequently asked questions
How should a disabled button look?
Lighter and less saturated than the enabled button, often gray, with lower contrast between label and background. The label should still be readable, and the button should not change on hover or click.
Do disabled elements need to meet contrast rules?
WCAG exempts inactive components from its contrast minimums. Still, users need to read the label to understand what is unavailable, so do not make it too faint.
What is the difference between disabled and aria-disabled?
The HTML disabled attribute removes the element from keyboard focus. aria-disabled="true" keeps it focusable while screen readers announce it as unavailable, so users can still find it and learn why.
Related terms
View all UI Design terms →Interactive States
Interactive states are the visual changes that show how a component responds to the user. They tell users whether an element can be used…
Hover State
A hover state is the visual change that appears when a mouse pointer moves over an element , such as a button or link. It tells users that…
Focus State
A focus state is the visual indicator that shows which element has keyboard focus . When users press Tab to move through a page, the focus…
Error Prevention
Error prevention is the practice of designing an interface so users are less likely to make errors in the first place. It is the fifth of…
Color Contrast
Color contrast is the difference in brightness between two colors, such as text and its background. It is measured as a contrast ratio…
Call-To-Action
A Call-To-Action (CTA) is a design element that prompts users to take a specific action. It typically appears as a button, link, or…
