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

refactor(tag): ♻️ improve tag component #43

Merged
merged 3 commits into from
Jan 20, 2021
Merged

Conversation

navin-moorthy
Copy link
Contributor

No description provided.

@vercel
Copy link

vercel bot commented Jan 20, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/timelessco/renderlesskit-react-tailwind/idk3cbno6
✅ Preview: https://renderlesskit-react-tailwind-git-tag-improve.timelessco.vercel.app

Comment on lines +13 to +20
xs: "inherit mr-1.5 text-xs",
sm: "inherit mr-2 text-xs",
lg: "inherit mr-2 text-base",
},
suffix: {
xs: "inherit ml-1.5 text-xs",
sm: "inherit ml-2 text-xs",
lg: "inherit ml-2 text-base",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per design, different icon & spacing based on size.

Comment on lines +5 to +10
xs:
"lib:h-6 lib:w-auto lib:min-w-6 lib:px-2 lib:text-xs lib:rounded-md lib:font-medium",
sm:
"lib:h-8 lib:w-auto lib:min-w-8 lib:px-3 lib:text-sm lib:rounded-md lib:font-medium",
lg:
"lib:h-10 lib:w-auto lib:min-w-10 lib:px-4 lib:text-sm lib:rounded-lg lib:font-medium",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved all the size related classes from base to here.
We can remove the repeated one's after we the states design(disabled, active etc.,)

src/Tag/Tag.tsx Outdated Show resolved Hide resolved
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

Successfully merging this pull request may close these issues.

2 participants