-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: resolved border collapse issue #1626 when border variants are mi…
…xed in button group (#1637) * fix(button-group): radius not work * fix(button): not show the correct borders * fix(changeset): button issue * fix(changeset): fix typo * fix(changeset): tweak changeset message * fix(button-groups): add miss undefined radius * fix: make changeset clearly * test(button-group): add variant button * refactor: button-group variant handling in button-group.stories.tsx * test: update button variant to 'bordered' * refactor: rename isIsolate to isIsolated * Revert "fix(button-group): radius not work" This reverts commit 6233690. * fix: remove isIsolate because using a negative value for the margin will always cover the neighbor * fix(changeset): remove radius part for another PR * test: add multiple variant buttons on storybook * fix: remove unused attribute * feat: use adjacent selector to remove doubles border * test: make variantButtons theme consistency * refactor: use collapseAdjacentVariantBorders to wrap an adjacent selector * Added RTL support. --------- Co-authored-by: Jakob Guddas <[email protected]>
- Loading branch information
Showing
4 changed files
with
101 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@nextui-org/button": patch | ||
"@nextui-org/theme": patch | ||
--- | ||
|
||
Fix #1626 The 'border-left' is obscured by 'margin-left ml-[calc(theme(borderWidth.medium)*-1)]', and the border is not covered by its neighbor when the button is set to variant='bordered' in the ButtonGroup. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3aac9ba
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.
Successfully deployed to the following URLs:
nextui-docs-v2 – ./apps/docs
nextui-docs-v2-nextui-org.vercel.app
nextui-docs-v2-git-main-nextui-org.vercel.app
nextui-docs-v2.vercel.app
nextui.org
*.nextui.org
www.nextui.org
3aac9ba
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.
Successfully deployed to the following URLs:
nextui-storybook-v2 – ./packages/storybook
nextui-storybook-v2.vercel.app
storybook.nextui.org
nextui-storybook-v2-nextui-org.vercel.app
sb.nextui.org
nextui-storybook-v2-git-main-nextui-org.vercel.app