Skip to content

Commit 43ae341

Browse files
committed
fix colors
1 parent 4a53689 commit 43ae341

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packages/dev/s2-docs/src/Link.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client';
22

3-
import {focusRing, style} from '@react-spectrum/s2/style' with {type: 'macro'};
3+
import {baseColor, focusRing, style} from '@react-spectrum/s2/style' with {type: 'macro'};
44
import {LinkProps, Link as S2Link} from '@react-spectrum/s2';
55
import {Link as RACLink, LinkProps as RACLinkProps} from 'react-aria-components';
66
import React from 'react';
@@ -49,13 +49,18 @@ export function CodeLink(props: RACLinkProps) {
4949
}
5050

5151
const titleLink = style({
52+
...focusRing(),
5253
font: 'heading-3xl',
5354
fontSize: {
5455
// On mobile, adjust heading to fit in the viewport, and clamp between a min and max font size.
5556
default: 'clamp(35px, (100vw - 32px) / var(--width-per-em), 55px)',
5657
lg: 'heading-3xl'
5758
},
58-
marginY: 0
59+
marginY: 0,
60+
color: {
61+
default: 'heading',
62+
forcedColors: 'LinkText'
63+
}
5964
});
6065

6166
export function TitleLink(props: RACLinkProps) {

0 commit comments

Comments
 (0)