-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(modules): update scaffold tailwind (#553)
Updating how scoping tailwind logic for modules work. Confirmed it works in local dev, local prod, and platform. Tested with multiple modules on one page as well ensuring that tailwind styles don't leak into inserted page. Instead of needing ``` .tailwind { @tailwind base; } ``` in the index.css we are using the `tailwindcss-scoped-preflight` library in the `tailwind.config.ts ` to scope it to `tailwind tw-${moduleName}`. So the module component will need to be wrapped by ``` <div className="tailwind tw-${moduleName}"> Module </div> ```
- Loading branch information
Showing
2 changed files
with
17 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters