Skip to content

[Bug]: Tailwind config 'prefix' not supported with strategy: "class" #69

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

Closed
Jimmy89 opened this issue Apr 30, 2021 · 1 comment
Closed

Comments

@Jimmy89
Copy link

Jimmy89 commented Apr 30, 2021

What version of @tailwindcss/forms are you using?

2.1.1

What version of Node.js are you using?

v12.20.0

What browser are you using?

N/A

What operating system are you using?

Fedora

Reproduction repository

https://play.tailwindcss.com/9WTYxDJPb3

Describe your issue

When both prefix from TailwindCSS and strategy: 'class' from this plugin are being used together the classes from the forms plugin do not get the prefix attached to them. As example the form-input class should be tw-form-input with the following tailwind config file:

module.exports = {
  prefix: 'tw-',
  plugins: [
    require('@tailwindcss/forms')({
      strategy: 'class',
    }),
  ],
}

However, the class remains form-input which is not expected.

@Jimmy89
Copy link
Author

Jimmy89 commented May 3, 2021

Duplicate of #64, sorry for not spotting that sooner.

@Jimmy89 Jimmy89 closed this as completed May 3, 2021
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

1 participant