-
Notifications
You must be signed in to change notification settings - Fork 188
fix: icon button sizes & update button docs #1738
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: f623e78 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Size Change: -782 B (-0.27%) Total Size: 288 kB
ℹ️ View Unchanged
|
5a79a5c
to
e3129b9
Compare
e3129b9
to
a5dafb0
Compare
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 design system of ours is getting pretty cool 🔥
Side note, I wish I had access to the Vercel org to see the preview
packages/design-system/src/components/IconButton/IconButton.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: Rémi de Juvigny <[email protected]>
did you click visit preview? i've tweaked some settings and using incognito i can still see the preview, so might work now? |
My bad, I was following the link from the CI checks, but the direct link in the comment works perfectly |
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.
nice!
<Flex gap={2}> | ||
{BUTTON_VARIANTS.map((variant) => ( | ||
<IconButton key={variant} {...args} variant={variant}> | ||
<Icon /> | ||
</IconButton> | ||
))} | ||
</Flex> | ||
); | ||
}, | ||
name: 'all variants', | ||
} satisfies Story; | ||
|
||
export const Group = { | ||
render: () => ( | ||
<IconButtonGroup> | ||
<IconButton label="Edit"> | ||
<Icons.Pencil /> | ||
</IconButton> | ||
<IconButton label="Clone"> | ||
<Icons.Duplicate /> | ||
</IconButton> | ||
<IconButton label="Delete" variant="danger"> | ||
<Icons.Trash /> | ||
</IconButton> | ||
</IconButtonGroup> |
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 will need to add source code as its incorrect for all variants
and group
. Also it would have been great if we also show withTooltip example in one of the example, so it replaces the default label?
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ `main` is currently in **pre mode** so this branch has prereleases rather than normal releases. If you want to exit prereleases, run `changeset pre exit` on `main`.⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ # Releases ## @strapi/[email protected] ### Minor Changes - [#1748](#1748) [`61936d6`](61936d6) Thanks [@madhurisandbhor](https://github.com/madhurisandbhor)! - chore: standardise forwardRefs across components ### Patch Changes - [#1738](#1738) [`8a87483`](8a87483) Thanks [@joshuaellis](https://github.com/joshuaellis)! - fix(IconButton): sizing was wrong compared to other buttons - [#1750](#1750) [`d89c9c3`](d89c9c3) Thanks [@madhurisandbhor](https://github.com/madhurisandbhor)! - Fixed: Link doesn't show the hover color - [#1753](#1753) [`9df216b`](9df216b) Thanks [@simotae14](https://github.com/simotae14)! - fixed Modal Content scroll issues - [#1752](#1752) [`90da62e`](90da62e) Thanks [@remidej](https://github.com/remidej)! - fixed SubNavHeader not applying space between label and search icon - [#1749](#1749) [`c7c5ad6`](c7c5ad6) Thanks [@madhurisandbhor](https://github.com/madhurisandbhor)! - fix: add click action on tag icon instead of on tag itself - Updated dependencies \[]: - @strapi/[email protected] ## @strapi/[email protected] ## @strapi/[email protected]
What does it do?
Related issue(s)/PR(s)