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

Class Strategy still applies all styles by default #67

Closed
leo-petrucci opened this issue Apr 14, 2021 · 2 comments
Closed

Class Strategy still applies all styles by default #67

leo-petrucci opened this issue Apr 14, 2021 · 2 comments

Comments

@leo-petrucci
Copy link

What version of @tailwindcss/forms are you using?

0.3.2

What version of Node.js are you using?

14.0.0

What browser are you using?

12.18.2

What operating system are you using?

Windows with WSL

Reproduction repository

none

Describe your issue

I'm unsure if I'm understanding this right but if I use:

  plugins: [
    require('@tailwindcss/forms'),
    {
      strategy: 'class',
    },
  ],

Then the styles should not be applied unless I specifically add their classes to my inputs, correct?

This doesn't seem to be happening, all styles are applied to all inputs even if I use the strategy option.

@adamwathan
Copy link
Member

Hey! Your code is incorrect, should be this:

  plugins: [
    require('@tailwindcss/forms')({
      strategy: 'class',
    }),
  ],

@leo-petrucci
Copy link
Author

Wow I'm a dummy, thank you!

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

No branches or pull requests

2 participants