Skip to content

Commit

Permalink
fix(button): Line height (#91)
Browse files Browse the repository at this point in the history
* fix(button): Line height

* test: Updated snapshot
  • Loading branch information
hachiojidev authored Dec 14, 2020
1 parent e441859 commit 2911ff7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/__tests__/components/button.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ it("renders correctly", () => {
expect(asFragment()).toMatchInlineSnapshot(`
<DocumentFragment>
<button
class="sc-bdfBwQ Fsqj"
class="sc-bdfBwQ gwwGmF"
>
Submit
</button>
Expand Down
1 change: 1 addition & 0 deletions src/components/Button/StyledButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const StyledButton = styled.button<ButtonProps>`
/* max-content instead of auto for Safari fix */
width: ${({ fullWidth }) => (fullWidth ? "100%" : "max-content")};
height: ${({ size }) => (size === "sm" ? "32px" : "48px")};
line-height: 1;
letter-spacing: 0.03em;
justify-content: center;
outline: 0;
Expand Down

0 comments on commit 2911ff7

Please sign in to comment.