Skip to content

Commit

Permalink
fix: Adjust min-height for accessibility when zooming (#221)
Browse files Browse the repository at this point in the history
* fix: Adjust min-height for accessibility when zooming

* fix: Adjust min-height for accessibility when zooming
  • Loading branch information
mclaberge authored Mar 5, 2021
1 parent 5ddad67 commit ac68489
Show file tree
Hide file tree
Showing 13 changed files with 40 additions and 80 deletions.
3 changes: 1 addition & 2 deletions packages/react/src/components/buttons/abstract-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ export const AbstractButton = styled.button<{ isMobile: boolean }>`
font-family: inherit;
font-size: ${({ isMobile }) => (isMobile ? 0.875 : 0.75)}rem;
font-weight: var(--font-bold);
height: ${({ isMobile }) => (isMobile ? 48 : 32)}px;
justify-content: center;
letter-spacing: ${({ isMobile }) => (isMobile ? 0.53 : 0.4)}px;
line-height: ${({ isMobile }) => (isMobile ? 1.5 : 1)}rem;
min-height: 2rem;
min-height: ${({ isMobile }) => (isMobile ? 48 : 32)}px;
min-width: 2rem;
outline: none;
padding: ${({ isMobile }) => (isMobile ? '0 var(--spacing-3x);' : '0 var(--spacing-2x);')};
Expand Down
15 changes: 5 additions & 10 deletions packages/react/src/components/buttons/add-button.test.tsx.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 7 additions & 14 deletions packages/react/src/components/buttons/button.test.tsx.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 5 additions & 10 deletions packages/react/src/components/buttons/icon-button.test.tsx.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ac68489

Please sign in to comment.