CSS cursor
- type
- property
- applies to
- any element
- inherits
- yes
- common values
- pointer | default | text | not-allowed | grab | move | wait | none
Where it goes
On anything clickable that is not an <a>: buttons, clickable cards, tabs, close icons. Pair it with a hover style. The cursor alone is easy to miss.
Example
button, .card[onclick], .tab { cursor: pointer; }
.btn:disabled { cursor: not-allowed; }
.handle { cursor: grab; }
.handle:active { cursor: grabbing; }Common mistakes
- Putting cursor: pointer on things that do nothing. People click and nothing happens. The pointer is a promise.
- Relying on it to show what is clickable. There is no cursor on a phone. Use color, a border or a hover state too.
- Forgetting cursor: not-allowed on a disabled button that inherited pointer from .btn. It still invites the click.