Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
[C-1031] Improve profile expand section touch target (#1911)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanjeffers committed Sep 13, 2022
1 parent f327636 commit 5efd985
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@ import IconCaretDown from 'app/assets/images/iconCaretDown.svg'
import type { TextButtonProps } from 'app/components/core'
import { TextButton } from 'app/components/core'
import { makeStyles } from 'app/styles'
import { spacing } from 'app/styles/spacing'

const messages = {
seeMore: 'See More',
seeLess: 'See Less'
}

const hitSlop = {
left: spacing(8),
right: spacing(8),
top: spacing(4),
bottom: spacing(4)
}

const useStyles = makeStyles(({ spacing }) => ({
expandButton: {
justifyContent: 'center',
Expand All @@ -32,6 +40,7 @@ export const ExpandHeaderToggleButton = (
return (
<TextButton
variant='neutralLight4'
hitSlop={hitSlop}
title={isExpanded ? messages.seeLess : messages.seeMore}
icon={IconCaretDown}
iconPosition='right'
Expand Down

0 comments on commit 5efd985

Please sign in to comment.