Skip to content

Commit

Permalink
Fix intro component arrow alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
mj12albert committed Aug 17, 2023
1 parent 242ffcf commit 3544f88
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ const CustomNumberInput = React.forwardRef(function CustomNumberInput(props, ref
}}
slotProps={{
incrementButton: {
children: '▴',
children: <span className="arrow"></span>,
},
decrementButton: {
children: '▾',
children: <span className="arrow"></span>,
},
}}
{...props}
Expand Down Expand Up @@ -116,8 +116,8 @@ const StyledButton = styled('button')(
height: 19px;
font-family: system-ui, sans-serif;
font-size: 0.875rem;
line-height: 1;
box-sizing: border-box;
line-height: 1.2;
background: ${theme.palette.mode === 'dark' ? grey[900] : '#fff'};
border: 0;
color: ${theme.palette.mode === 'dark' ? grey[300] : grey[900]};
Expand All @@ -141,5 +141,9 @@ const StyledButton = styled('button')(
grid-column: 2/3;
grid-row: 2/3;
}
& .arrow {
transform: translateY(-1px);
}
`,
);
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ const CustomNumberInput = React.forwardRef(function CustomNumberInput(
}}
slotProps={{
incrementButton: {
children: '▴',
children: <span className="arrow"></span>,
},
decrementButton: {
children: '▾',
children: <span className="arrow"></span>,
},
}}
{...props}
Expand Down Expand Up @@ -120,8 +120,8 @@ const StyledButton = styled('button')(
height: 19px;
font-family: system-ui, sans-serif;
font-size: 0.875rem;
line-height: 1;
box-sizing: border-box;
line-height: 1.2;
background: ${theme.palette.mode === 'dark' ? grey[900] : '#fff'};
border: 0;
color: ${theme.palette.mode === 'dark' ? grey[300] : grey[900]};
Expand All @@ -145,5 +145,9 @@ const StyledButton = styled('button')(
grid-column: 2/3;
grid-row: 2/3;
}
& .arrow {
transform: translateY(-1px);
}
`,
);

0 comments on commit 3544f88

Please sign in to comment.