Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Conflict Diagnostics does not capture Arbitrary values #965

Open
PhillipMwaniki opened this issue May 10, 2024 · 2 comments
Open

BUG: Conflict Diagnostics does not capture Arbitrary values #965

PhillipMwaniki opened this issue May 10, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@PhillipMwaniki
Copy link

What version of VS Code are you using?

v1.89.0

What version of Tailwind CSS IntelliSense are you using?

v0.10.5

What version of Tailwind CSS are you using?

v3.3.2

What package manager are you using?

yarn

What operating system are you using?

macOS

Tailwind config

/** @type {import('tailwindcss').Config} */
module.exports = {
  content: ['./src/**/*.{js,jsx,ts,tsx}'],
  theme: {
    extend: {
      fontFamily: {
        barlowCondensed: ['BarlowCondensed-Regular', 'sans-serif'],
        barlowCondensedBold: ['BarlowCondensed-Bold', 'sans-serif'],
        barlowCondensedSemiBold: ['BarlowCondensed-SemiBold', 'sans-serif'],
      },
    },
  },
  plugins: [],
};

VS Code settings

Not necessary

Reproduction URL

Not necessary

Describe your issue

The plugin works great at detecting conflicting classes within a class tag
image

But there is an issue, it doesn't detect the conflict when arbitrary values are used
image

@thecrypticace
Copy link
Contributor

Hi! This one is working as intended for today at least given that the properties generated are different. text-xs generates both font-size and line-height whereas text-[16px] only generates font-size. If you were to write text-[16px]/6 text-xs then you'd get a warning.

However, I can see that this is potentially surprising behavior. Will talk through this with the team. 👍

@thecrypticace thecrypticace added the enhancement New feature or request label May 10, 2024
@thecrypticace thecrypticace self-assigned this May 10, 2024
@PhillipMwaniki
Copy link
Author

With your explanation, it doesn't sound like a bug anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants