Skip to content

Commit

Permalink
Updated Button Styles (#884)
Browse files Browse the repository at this point in the history
  • Loading branch information
bexsoft authored Jul 23, 2024
1 parent ed77ed6 commit 4870958
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const CustomButton = styled.button<
}

return {
borderRadius: 6,
borderRadius: 4,
cursor: "pointer",
height: compact ? 28 : 36,
fontFamily: "'Geist', sans-serif",
Expand All @@ -101,15 +101,18 @@ const CustomButton = styled.button<
...buttonLabelSx,
},
"& .buttonIcon": {
display: "block",
display: "flex",
height: 16,
width: 16,

minWidth: 16,
minHeight: 16,
justifyContent: "center",
alignItems: "center",
"& > svg": {
fill: get(theme, `buttons.${variant}.enabled.text`, "#000"),
color: get(theme, `buttons.${variant}.enabled.text`, "#000"),
width: 14,
height: 14,
width: 16,
height: 16,
},
},
"&:disabled": {
Expand Down
2 changes: 2 additions & 0 deletions src/components/ButtonGroup/ButtonGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ const ButtonGroupMain = styled.div<ButtonGroupProps>(({ theme, sx }) => ({
"buttonGroup.border",
themeColors["Color/Neutral/Border/colorBorderMinimal"].lightMode,
),
boxShadow: "none",
"& .buttonIcon > svg": {
color: get(
theme,
Expand Down Expand Up @@ -163,6 +164,7 @@ const ButtonGroupMain = styled.div<ButtonGroupProps>(({ theme, sx }) => ({
"buttonGroup.border",
themeColors["Color/Neutral/Border/colorBorderMinimal"].lightMode,
),
boxShadow: "none",
"& .buttonIcon > svg": {
color: get(
theme,
Expand Down

0 comments on commit 4870958

Please sign in to comment.