-
Notifications
You must be signed in to change notification settings - Fork 124
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
Feature/paragraph updates #257
Conversation
✅ Deploy Preview for sensational-seahorse-8635f8 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -19,7 +19,7 @@ npm i flowbite flowbite-vue | |||
```javascript | |||
module.exports = { | |||
content: [ | |||
'node_modules/flowbite-vue/**/*.{js,jsx,ts,tsx}', | |||
'node_modules/flowbite-vue/**/*.{js,jsx,ts,tsx,vue}', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this change was required for custom classes like last:mb-0
to be visible in projects using flowbite-vue
(without it custom classes like that was not discovered by Tailwindcss.
@@ -1,4 +1,4 @@ | |||
import { twMerge } from 'tailwind-merge' | |||
|
|||
export const useMergeClasses = (componentClasses: string): string => | |||
export const useMergeClasses = (componentClasses: string | string[]): string => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
twMerge
accepts both types... so we shouldn't limit those here.
LGTM |
OK, I've removed all props as those were just class wrappers. |
Update for point 1. on List of random issues
class
prop addeduseMergeClasses()
used to manage user classesdefaultClasses
property with default classes:mb-3 last:mb-0
color
prop removed (it was just an unnecessary wrapper/middleware for tailwind classes)color
default value moved todefaultClasses
As now with
useMergeClasses()
user can easily set them... I would like to remove as well other props that exist only for setting tailwind classes.If you agree I'll remove them in the next commit.