Skip to content

[BUG] tabular-nums and slashed-zero are conflicting, but should not. #316

@einarlove

Description

@einarlove

Describe the bug
Using tabular-nums and slashed-zero gives linting error for conflicting classnames.

To Reproduce
Steps to reproduce the behavior:
Add both tabular-nums and slashed-zero as classnames to same element with tailwindcss/no-contradicting-classname enabled.

Expected behavior
It should not give error/warning. The documentation clearly states they can be combined since it uses css variables under the hood.

eslint config file or live demo
"tailwindcss/no-contradicting-classname": "warn"

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions