Skip to content

Buttons have cursor: pointer by default, but should not for accessibility reasons #8961

@MatthewSbar

Description

@MatthewSbar

What version of Tailwind CSS are you using?

3.1.6

What build tool (or framework if it abstracts the build tool) are you using?

Vite 3.0.0 (rollup)

What version of Node.js are you using?

v16.13.0

What browser are you using?

Chrome

What operating system are you using?

macOS

Reproduction URL

https://stackblitz.com/edit/react-tailwind-qds1vc?file=index.js

Describe your issue

While it's common to give <button>s cursor: pointer;, this is an anti-pattern. The CSS spec establishes that cursor: pointer indicates an element is a link.

This article has some additional justification for this. I understand many users will want to override this behavior back to the common misuse of cursor: pointer;, but Tailwind should be correct by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions