Skip to content

Commit

Permalink
feat: update button color
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiyeon-lunit committed Jun 10, 2024
1 parent 11e9720 commit 1f88e15
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export const kindStyle = ({ kind, color, lunit_token }: KindStyleParams) => ({
...(kind === "outlined" &&
color === "secondary" && {
color: lunit_token.component.btn_secondary_text,
border: `${OUTLINED_BORDER_WIDTH}px solid ${lunit_token.component.btn_secondary_border}`,
border: `${OUTLINED_BORDER_WIDTH}px solid ${lunit_token.core.border_medium}`,
"&:hover": getHoverStyle("none"),
"&:hover:before": {
content: "''",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const CustomToggleButton = styled(MuiToggleButton, {
...(selectedColor === "secondary" && {
"&.Mui-selected, &.Mui-selected:hover": {
border: "none",
backgroundColor: lunit_token.component.btn_selected_secondary_bg,
backgroundColor: lunit_token.component.btn_secondary_bg,
color: lunit_token.component.btn_selected_secondary_text,
},
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ const ColorTemplate: StoryFn<typeof ToggleButton> = (args) => {
value="second"
kind="contained"
color="secondary"
selectedColor="secondary"
>
Secondary
</ToggleButton>
Expand Down Expand Up @@ -454,7 +455,13 @@ const ColorTemplate: StoryFn<typeof ToggleButton> = (args) => {
<ToggleButton {...args} value="first" kind="ghost" color="primary">
Primary
</ToggleButton>
<ToggleButton {...args} value="second" kind="ghost" color="secondary">
<ToggleButton
{...args}
value="second"
kind="ghost"
color="secondary"
selectedColor="secondary"
>
Secondary
</ToggleButton>
</ToggleButtonGroup>
Expand Down

0 comments on commit 1f88e15

Please sign in to comment.