Skip to content

Commit 805dde1

Browse files
committed
Fix PR review comments
1 parent 81be5a3 commit 805dde1

File tree

8 files changed

+22
-115
lines changed

8 files changed

+22
-115
lines changed

src-ts/lib/form/form-groups/form-card-set/FormCardSet.module.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,13 @@
146146
font-size: 10px;
147147
}
148148
}
149+
150+
.info-icon {
151+
margin-left: $space-sm;
152+
color: $turq-160;
153+
cursor: pointer;
154+
outline: none;
155+
}
149156
}
150157
}
151158
&.mobile {

src-ts/lib/form/form-groups/form-card-set/FormCardSet.tsx

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import cn from 'classnames'
22
import React, { FocusEvent, SVGProps } from 'react'
33

4-
import { Button, HelpIcon, IconCheck, IconOutline, textFormatMoneyLocaleString, useCheckIsMobile } from '../../../../lib'
4+
import { Button, IconCheck, IconOutline, IconSolid, textFormatMoneyLocaleString, Tooltip, useCheckIsMobile } from '../../../../lib'
55
import { FormCard, FormInputModel } from '../../form-input.model'
66

77
import styles from './FormCardSet.module.scss'
@@ -67,14 +67,10 @@ const FormCardSet: React.FC<FormCardSetProps> = ({ name, cards, onChange, value
6767
<span className='body-main'>{row.text}</span>
6868
}
6969
{row.infoIcon && (
70-
<HelpIcon
71-
inverted
72-
arrowColor='#000000'
73-
backgroundColor='#000000'
74-
type='Info'
75-
>
76-
{row.tooltipText}
77-
</HelpIcon>
70+
<Tooltip
71+
content={row.tooltipText}
72+
trigger={<IconSolid.InformationCircleIcon className={styles['info-icon']} width={16} height={16} />}
73+
/>
7874
)}
7975
</span>
8076
)}

src-ts/lib/help-icon/HelpIcon.module.scss

Lines changed: 0 additions & 37 deletions
This file was deleted.

src-ts/lib/help-icon/HelpIcon.tsx

Lines changed: 0 additions & 65 deletions
This file was deleted.

src-ts/lib/help-icon/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

src-ts/lib/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,3 @@ export * from './radio-button'
4848
export * from './payment-form'
4949
export * from './react-select'
5050
export * from './social-share'
51-
export * from './help-icon'

src-ts/tools/work/work-service-price/WorkServicePrice.module.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,13 @@
7474
align-items: center;
7575
margin-left: $space-sm;
7676
color: $turq-160;
77+
78+
.help-icon {
79+
cursor: pointer;
80+
81+
@include ltemd {
82+
@include icon-xl;
83+
}
84+
}
7785
}
7886
}

src-ts/tools/work/work-service-price/WorkServicePrice.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { FC } from 'react'
22

3-
import { IconWrapper, textFormatMoneyLocaleString, Tooltip, IconOutline } from '../../../lib'
3+
import { IconOutline, IconWrapper, textFormatMoneyLocaleString, Tooltip } from '../../../lib'
44

55
import styles from './WorkServicePrice.module.scss'
66

@@ -45,7 +45,7 @@ const ServicePrice: FC<WorkServicePriceProps> = (props: WorkServicePriceProps) =
4545
content='The price and project length is dynamic and dependent on the
4646
variables selected as you define your work.'
4747
trigger={(
48-
<IconOutline.QuestionMarkCircleIcon width={14} height={14} />
48+
<IconOutline.QuestionMarkCircleIcon className={styles['help-icon']} width={16} height={16} />
4949
)}
5050
/>
5151
</span>

0 commit comments

Comments
 (0)