-
Notifications
You must be signed in to change notification settings - Fork 48
Feat: New Compound Tag Component #381
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
base: next
Are you sure you want to change the base?
Conversation
|
PinkProject ID: Tip Cursor pagination performs better than offset pagination when loading further pages. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🚀 Previews available on pkg.vc!📦
|
| /* Size variants */ | ||
| :global(.compound-tag.xs) .child { | ||
| --p-compound-tag-child-font-size: var(--font-size-xs); | ||
| --p-compound-tag-child-padding-block: var(--space-1); | ||
| --p-compound-tag-child-padding-inline: var(--space-3); | ||
| } | ||
|
|
||
| :global(.compound-tag.s) .child { | ||
| --p-compound-tag-child-padding-block: var(--space-1); | ||
| --p-compound-tag-child-padding-inline: var(--space-3); | ||
| } |
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.
we should avoid using :globals 👍🏻
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.
we can try and use context for it
| > * { | ||
| display: inline-flex; | ||
| align-items: center; | ||
| vertical-align: middle; | ||
| } |
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 one might not work, since svelte considers this an unused class
| <style lang="scss"> | ||
| @use '../../scss/mixins/transitions'; | ||
|
|
||
| .child { |
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.
you can just do button { here 👍🏻
| class="child" | ||
| class:code={variant === 'code'} | ||
| class:selected | ||
| class:disabled |
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.
i dont see this class being used 👍🏻
What does this PR do?
(Provide a description of what this PR does.)
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work.)
Related PRs and Issues
(If this PR is related to any other PR or resolves any issue or related to any issue link all related PR and issues here.)
Have you read the Contributing Guidelines on issues?
(Write your answer here.)