Skip to content

Commit a3477a6

Browse files
authored
refactor(button): switch from circular IconButton to rounded (#773)
* refactor(button): switch from circular IconButton to rounded * refactor(button): switch to alt button sizes for components
1 parent 330174e commit a3477a6

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

.changeset/moody-gifts-lay.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@launchpad-ui/button': patch
3+
'@launchpad-ui/pagination': patch
4+
'@launchpad-ui/modal': patch
5+
'@launchpad-ui/core': patch
6+
---
7+
8+
[Button]: Switch from circular IconButton to rounded
9+
[Modal]: Update close button size to small
10+
[Pagination]: Update PaginationButton IconButton size to small

packages/button/src/styles/Button.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,6 @@
381381
.Button.Button--icon {
382382
padding: 0;
383383
line-height: 1;
384-
border-radius: 50%;
385384
height: 3.2rem;
386385
width: 3.2rem;
387386
min-height: auto;

packages/modal/src/ModalHeader.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const ModalHeader = ({
3939
{withCloseButton && (
4040
<IconButton
4141
aria-label="close"
42+
size="small"
4243
icon={<Close size="medium" />}
4344
className={styles.closeButton}
4445
onClick={onCancel}

packages/pagination/src/PaginationButton.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,10 @@ const PaginationButton = ({
5656
<IconButton
5757
disabled={disabled}
5858
className={classes}
59+
size="small"
5960
data-test-id={testId}
6061
onClick={() => onClick(kind)}
61-
icon={<Icon size="small" />}
62+
icon={<Icon />}
6263
aria-label={label}
6364
/>
6465
);

0 commit comments

Comments
 (0)