Skip to content

Commit

Permalink
fix: react ui theme spacing for Button component
Browse files Browse the repository at this point in the history
  • Loading branch information
KVNLS committed May 21, 2024
1 parent eadfbb2 commit 19a4509
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .changeset/old-carrots-complain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"ledger-live-desktop": minor
"@ledgerhq/react-ui": minor
---

Fix border-radius in our react DS for the Button
2 changes: 0 additions & 2 deletions apps/ledger-live-desktop/src/renderer/components/ButtonV3.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import { useTrack } from "~/renderer/analytics/segment";
import styled from "styled-components";

export const Base = styled(BaseButton)<{ big?: boolean }>`
border-radius: 44px;
font-size: ${p => (p.big ? "14px" : "12px")};
height: 40px;
line-height: 40px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ const SearchContainer = styled(Flex).attrs({ flexShrink: "1" })`
`;

export const Button = styled(BaseButton)<{ big?: boolean }>`
border-radius: 44px;
${p =>
p.Icon
? `
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/packages/react/src/components/cta/Button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export const Base = baseStyled.button.attrs((p: BaseProps) => ({
}))<BaseProps>`
background-color: transparent;
border-color: transparent;
border-radius: ${p => p.theme.space[13]}px;
border-radius: 44px;
border-style: solid;
border-width: ${p => (p.outline || p.variant === "shade" ? 1 : 0)}px;
font-weight: 600;
Expand Down

0 comments on commit 19a4509

Please sign in to comment.