Skip to content

Commit

Permalink
fix: action button action UI (Uniswap#564)
Browse files Browse the repository at this point in the history
  • Loading branch information
just-toby committed Mar 16, 2023
1 parent f5ab1c0 commit c3e49cd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/ActionButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ const grow = keyframes`
`

const actionCss = css`
align-items: center;
border: 1px solid ${({ theme }) => theme.outline};
padding: calc(0.5rem - 1px);
padding-left: calc(0.75rem - 1px);
padding: calc(0.25rem - 1px) calc(0.75rem - 1px);
${ActionRow} {
animation: ${grow} ${AnimationSpeed.Medium} ease-in;
Expand All @@ -51,8 +51,9 @@ const actionCss = css`
${StyledButton} {
/* Subtract the padding from the borderRadius so that it nests properly. */
border-radius: ${({ theme }) => theme.borderRadius.medium}rem;
border-radius: ${({ theme }) => theme.borderRadius.small}rem;
flex-grow: 0;
height: 2.5rem;
padding: 0 0.75rem;
}
`
Expand Down

0 comments on commit c3e49cd

Please sign in to comment.