Skip to main content

Hover State

UI Design

What is a 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 the element is interactive before they click.

How a Hover State works

Typical hover changes are small:

  • Background: A slightly darker or lighter fill
  • Underline: Added to text links
  • Cursor: Changes from an arrow to a hand
  • Elevation: A card may rise with a larger shadow

On the web, hover styles use the CSS :hover pseudo-class.

When to use a Hover State

Add hover states to every clickable element on desktop interfaces. Keep the change subtle and consistent across the design system, so it does not look like a selected or disabled state.

Hover State limitations

Touchscreens have no hover, and keyboard users never trigger it. Never put important content or actions only behind hover. Pair every hover state with a visible focus state for keyboard users.

Frequently asked questions

What is the difference between a hover state and a focus state?

The hover state appears when a mouse pointer is over an element. The focus state shows which element has keyboard focus, for example after pressing Tab. Both are needed, because keyboard users never see hover.

Do hover states work on mobile?

Not reliably. Touchscreens have no pointer resting over the screen, so hover may never appear or may stay stuck after a tap. Never hide important information or actions behind hover.

What should change in a hover state?

Usually a small change, such as a slightly darker background, an underline on a link or the cursor changing to a hand. The change should signal that the element is clickable without looking like a different state.