Skip to content

Commit

Permalink
fix: set ghost button background color transparent
Browse files Browse the repository at this point in the history
  • Loading branch information
ooooorobo committed Nov 25, 2024
1 parent f99f942 commit 56acf10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions src/shared/ui/Button/Button.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,16 @@

.Variant_Ghost_Neutral {
color: var(--color-neutral-900);
background-color: transparent;
}

.Button:disabled {
color: var(--color-neutral-300);
background-color: var(--color-neutral-200);

&.Variant_Ghost {
background-color: transparent;
}
}

.Disabled_Ghost {
Expand Down Expand Up @@ -100,8 +105,4 @@

.Center {
flex-grow: 1;

display: flex;
justify-content: center;
align-items: center;
}
2 changes: 1 addition & 1 deletion src/shared/ui/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const buttonStyle = cva(styles.Button, {
widthType: { fill: styles.WidthType_Fill, hug: styles.WidthType_Hug },
textAlign: { left: styles.TextAlign_Left, center: styles.TextAlign_Center, right: styles.TextAlign_Right },
size: { M: styles.Size_M, S: styles.Size_S, fit: styles.Size_Fit },
variant: { filled: '', outline: '', ghost: '' },
variant: { filled: '', outline: '', ghost: styles.Variant_Ghost },
color: { primary: '', neutral: '' },
},
compoundVariants: [
Expand Down

0 comments on commit 56acf10

Please sign in to comment.