-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redesign ButtonGroup and ToggleButton (#603)
- Loading branch information
1 parent
c6699c4
commit becec6c
Showing
10 changed files
with
242 additions
and
202 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
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
29 changes: 6 additions & 23 deletions
29
packages/elements/src/components/ui/button-group/ButtonGroup.module.css
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 |
---|---|---|
@@ -1,26 +1,9 @@ | ||
.buttonGroup { | ||
display: flex; | ||
display: inline-flex; | ||
flex-direction: row; | ||
padding: 2px; | ||
gap: 2px; | ||
border: 2px solid var(--lhds-color-ui-300); | ||
|
||
& > button { | ||
margin: 0; | ||
position: relative; | ||
|
||
&:not(:only-child):not(:last-child) { | ||
margin-right: -1px; | ||
} | ||
|
||
&:hover:not(:disabled), | ||
&:focus-visible { | ||
z-index: 1; | ||
} | ||
|
||
&:not(:first-child) { | ||
border-top-left-radius: 0; | ||
border-bottom-left-radius: 0; | ||
} | ||
&:not(:last-child) { | ||
border-top-right-radius: 0; | ||
border-bottom-right-radius: 0; | ||
} | ||
} | ||
border-radius: 12px; | ||
} |
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
5 changes: 3 additions & 2 deletions
5
packages/elements/src/components/ui/button-group/ButtonGroup.tsx
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
Oops, something went wrong.