Skip to content

Commit

Permalink
fix: icon button height (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
zzmp authored Aug 23, 2022
1 parent 5c68f85 commit d17b7b2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const TextButton = transparentButton('accent')
const SecondaryButton = transparentButton('secondary')

const StyledIconButton = styled(SecondaryButton)`
transform: translateY(1.75px);
height: 1em;
`

interface IconButtonProps {
Expand Down
4 changes: 4 additions & 0 deletions src/components/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ const HeaderRow = styled(Row)`
margin: 0 0.75em 0.75em;
padding-top: 0.5em;
${largeIconCss}
button {
height: ${({ iconSize }) => iconSize}em;
}
`

interface HeaderProps {
Expand Down
4 changes: 4 additions & 0 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ const HeaderRow = styled(Row)`
margin: 0 0.75em 0.75em;
padding-top: 0.5em;
${largeIconCss}
button {
height: ${({ iconSize }) => iconSize}em;
}
`

export interface HeaderProps {
Expand Down

0 comments on commit d17b7b2

Please sign in to comment.