Skip to content

Commit

Permalink
fix(elements): set Button icon size in px instead of rem
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangabriele committed Jan 13, 2023
1 parent 8d274ee commit 363ffab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## Related Issues
## Related Pull Requests & Issues

- Resolve #123
- MTES-MCT/monitorenv#123
- MTES-MCT/monitorfish#123

Expand Down
6 changes: 3 additions & 3 deletions src/elements/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import type { IconProps } from '../types'
import type { ButtonHTMLAttributes, FunctionComponent } from 'react'

const ICON_SIZE: Record<Size, number> = {
[Size.LARGE]: 1.25,
[Size.NORMAL]: 1.25,
[Size.SMALL]: 0.75
[Size.LARGE]: 20,
[Size.NORMAL]: 20,
[Size.SMALL]: 12
}

export type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
Expand Down

0 comments on commit 363ffab

Please sign in to comment.