Hide actions that are currently inaccessible or irrelevant to the actor.
Related components
Context menus & toolbars: only displaying actions relevant to the current selection or state rather than disabling irrelevant items.
Edge cases
Situation when actors need to understand the full range of potential actions to establish a clear mental model.
Accessibility concerns
Removing UI elements entirely (e.g., changing layout structure) might negatively impact assistive technology.
Consequences
- the surface carries only what applies, so nothing the actor can see is unusable
- an action never shown is an action the actor may not know exists, which puts the full range of what's possible somewhere other than the current context or nowhere at all
- hiding changes the layout, so the same surface has a different shape in different states — which spatial memory and assistive technology both read as things moving
Related patterns
Complements
- Contextual actions — “Omit controls that do not apply rather than showing them disabled, following unavailable actions, and display keyboard shortcuts beside menu items so actors can bypass the menu on repeat use.”
Alternatives
- Disabled state — hiding options is an alternative to showing them disabled
Related to
- Progressive disclosure — a softer form: deferring rather than removing
Preceded by
- Command menu — “Filter the list to actions that apply in the current state, and handle unavailable actions that the actor still expects to find by keeping them searchable with the reason they cannot run here rather than letting them vanish without trace.”
- Layered interface — “For capabilities held back from the active layer, omit them from the surface as unavailable actions when keeping the view uncluttered matters most, or show them in a disabled state with a path to unlock them when the actor needs to see what higher layers hold.”
- Roles — “When an actor meets an action their role does not allow, use explanation to name the role required—letting them ask for it from there—and use unavailable actions to hide only the actions that are not theirs to ask for.”