question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] tailwindcss/classnames-order, className={`relative w-full overflow-hidden ${(className)}`} not working.

See original GitHub issue

className={relative w-full overflow-hidden ${(className)}}

is not linting.

Expected behavior className={overflow-hidden relative w-full ${className}}

Environment (please complete the following information):

OS: windows10 Softwares + version used: VSCode 1.65.1 eslint-plugin-tailwindcss 3.5.0 tailwindcss 3.0.23 npm 7.23.0 node v14.17.6

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
demonguyjcommented, Jun 27, 2022

@francoismassart It’s works well 😃 Thanks!

1reaction
demonguyjcommented, Mar 12, 2022

Hello 👋

I hope sorting classes.

Input:

  1. className={relative w-full overflow-hidden ${className}}
  2. className={test ${(open === false) ? relative invisible overflow-hidden : ``}}

Now(same like Input):

  1. className={relative w-full overflow-hidden ${className}}
  2. className={test ${(open === false) ? relative invisible overflow-hidden : ``}}

Expect:

  1. className={overflow-hidden relative w-full ${className}}
  2. className={test ${(open === false) ? invisible relative overflow-hidden : ``}}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Tailwind CSS classes is not working in my project?
This error is due to tailwind not finding any classes to scan in what it 'thinks' is your HTML code directories.
Read more >
Conflicting className precedence rules · Issue #1010 - GitHub
It's expected behavior. This is how html and css works, you can't change the precedence in html with the order of class-names. What...
Read more >
Content Configuration - Tailwind CSS
Configuring source paths. Tailwind CSS works by scanning all of your HTML, JavaScript components, and any other template files for class names, ...
Read more >
Working with Tailwind CSS - MUI Base
This guide assumes that you have a basic working knowledge of the following: Tailwind CSS; TypeScript in React; building React UI components. We...
Read more >
Creating hover effects with Tailwind CSS - Bird Eats Bug
In this Tailwind CSS tutorial we'll learn about hover classes and how to apply over effects to elements.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found