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

Feature/paragraph updates #257

Merged
merged 7 commits into from
Dec 18, 2023
Merged

Conversation

Sqrcz
Copy link
Collaborator

@Sqrcz Sqrcz commented Dec 13, 2023

Update for point 1. on List of random issues

  • class prop added
  • useMergeClasses() used to manage user classes
  • added defaultClasses 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 to defaultClasses

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.

Copy link

netlify bot commented Dec 13, 2023

Deploy Preview for sensational-seahorse-8635f8 ready!

Name Link
🔨 Latest commit e705ee4
🔍 Latest deploy log https://app.netlify.com/sites/sensational-seahorse-8635f8/deploys/657ffad30f0a5f0008f4f5a8
😎 Deploy Preview https://deploy-preview-257--sensational-seahorse-8635f8.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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}',
Copy link
Collaborator Author

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 =>
Copy link
Collaborator Author

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.

@cogor
Copy link
Collaborator

cogor commented Dec 15, 2023

LGTM

@cogor cogor added 📚 documentation Improvements or additions to documentation 🔧 enhancement New feature or request labels Dec 15, 2023
@Sqrcz
Copy link
Collaborator Author

Sqrcz commented Dec 16, 2023

OK, I've removed all props as those were just class wrappers.

@Sqrcz Sqrcz marked this pull request as ready for review December 16, 2023 00:59
@cogor cogor merged commit 7948a04 into themesberg:main Dec 18, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📚 documentation Improvements or additions to documentation 🔧 enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants