tailwind-scrollbar-hide icon indicating copy to clipboard operation
tailwind-scrollbar-hide copied to clipboard

Upgrade tailwind v3

Open doong-jo opened this issue 1 year ago • 2 comments

Hello,

I am finding this open source project very useful. Currently, the latest version of Tailwind CSS is version 3, and the ['responsive'] parameter used previously is no longer valid in this major version. Therefore, it seems necessary to update this open source project to address this change.

image

Breaking changes

Since the intended responsive prefix might not work in version 2, it would be advisable to mention any breaking changes when releasing the new version.

Playground

https://github.com/reslear/tailwind-scrollbar-hide/assets/22005861/9fae0bbc-56f4-4f23-b3d1-0f577109b828

doong-jo avatar Jul 09 '24 02:07 doong-jo

LGTM 🔥 I don't know if it's possible to switch the project to typescript yet?

reslear avatar Jul 09 '24 08:07 reslear

@reslear I think it's possible, but I don't think this project is actually necessary (tailwind v3 still supports esm). My screenshot is simply a capture of the d.ts file from tailwind (in node_modules). I didn't consider switching to typescript from plugin. 😄

doong-jo avatar Jul 10 '24 08:07 doong-jo

so, i found in docs this is already default values:

respectPrefix lets you specify whether Tailwind should automatically prefix your classes with the user's configured prefix. Defaults to true. respectImportant lets you specify whether Tailwind should automatically mark declarations as !important if the user has configured that in their config file. Defaults to true.

https://github.com/tailwindlabs/tailwindcss/pull/412

i close PR but update tailwind, thx for investigate.

reslear avatar Dec 18 '24 16:12 reslear