Skip to content

Commit

Permalink
Fix icon size in Buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-baer committed Dec 8, 2023
1 parent 1345824 commit 5e17ccb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/rare-cycles-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sumup/circuit-ui': patch
---

Fixed the size of icons inside Buttons when the available icon size doesn't match the Button size.
12 changes: 12 additions & 0 deletions packages/circuit-ui/components/Button/Button.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,18 @@
margin-left: var(--cui-spacings-byte);
}

.s .leading-icon,
.s .trailing-icon {
width: 16px;
height: 16px;
}

.m .leading-icon,
.m .trailing-icon {
width: 24px;
height: 24px;
}

.base .spinner {
position: absolute;
visibility: hidden;
Expand Down

0 comments on commit 5e17ccb

Please sign in to comment.