Skip to content

Commit

Permalink
[C-3924] Fix misc font/type issues on purchase flow (#7760)
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondjacobson authored Mar 1, 2024
1 parent b695203 commit 1c554c6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
6 changes: 4 additions & 2 deletions packages/harmony/src/components/text-link/TextLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,16 @@ export const TextLink = (props: TextLinkProps) => {
default: color.link.default,
subdued: color.link.subdued,
visible: color.link.visible,
inverted: color.static.white
inverted: color.static.white,
secondary: color.secondary.secondary
}

const variantHoverColors = {
default: color.primary.p300,
subdued: color.primary.p300,
visible: color.link.visible,
inverted: color.static.white
inverted: color.static.white,
secondary: color.secondary.secondary
}

const hoverStyles = {
Expand Down
2 changes: 1 addition & 1 deletion packages/harmony/src/components/text-link/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export type TextLinkProps = TextLinkTextProps &
* Which variant to display.
* @default default
*/
variant?: 'default' | 'subdued' | 'visible' | 'inverted'
variant?: 'default' | 'subdued' | 'visible' | 'inverted' | 'secondary'

/**
* Which text variant to display.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export const PaymentMethod = ({
<Icon color='default' />
</Flex>
) : null}
<Text>{label}</Text>
<Text variant='body' strength='default' size='m'>{label}</Text>
</Flex>
<Text
variant='body'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const PayToUnlockInfo = () => {
<Text className={styles.copy} variant='body'>
<span>{messages.copyPart1}</span>
<TextLink
variant='visible'
variant='secondary'
isExternal
href={TERMS_OF_SERVICE}
onClick={handleClickTOSLink}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@

.trackOwnerName {
margin: 0 var(--unit-1);
color: var(--secondary);
}

.badgeIcon {
Expand Down

0 comments on commit 1c554c6

Please sign in to comment.