@@ -10,7 +10,7 @@ import {
10
10
Item ,
11
11
List
12
12
} from '@radix-ui/react-navigation-menu'
13
- import { mauve , violet } from '@radix-ui/colors'
13
+ // import { mauve, violet } from '@radix-ui/colors'
14
14
import { ChevronDown } from '../Icons'
15
15
import { paperStyles } from '../Paper'
16
16
@@ -118,9 +118,15 @@ const StyledCaret = styled(ChevronDown, {
118
118
} )
119
119
120
120
const NAV_MENU_TRIGGER_CLASS_NAME = 'c-popover-trigger'
121
- export type NavigationMenuTriggerProps = Omit <
122
- ComponentProps < typeof StyledTrigger > ,
123
- 'asChild'
121
+ // export type NavigationMenuTriggerProps = Omit<
122
+ // ComponentProps<typeof StyledTrigger>,
123
+ // 'asChild'
124
+ // > & {
125
+ // caret?: boolean
126
+ // }
127
+
128
+ export type NavigationMenuTriggerProps = ComponentProps <
129
+ typeof StyledTrigger
124
130
> & {
125
131
caret ?: boolean
126
132
}
@@ -130,12 +136,13 @@ export const NavigationMenuTrigger = forwardRef<
130
136
> ( ( { children, caret = false , ...props } , forwardedRef ) => (
131
137
< StyledTrigger
132
138
className = { NAV_MENU_TRIGGER_CLASS_NAME }
133
- asChild
134
139
{ ...props }
135
140
ref = { forwardedRef }
136
141
>
137
- { children }
138
- { caret && < StyledCaret aria-hidden /> }
142
+ < >
143
+ { children }
144
+ { caret && < StyledCaret aria-hidden /> }
145
+ </ >
139
146
</ StyledTrigger >
140
147
) )
141
148
NavigationMenuTrigger . toString = ( ) => `.${ NAV_MENU_TRIGGER_CLASS_NAME } `
@@ -196,8 +203,8 @@ const StyledArrow = styled('div', {
196
203
position : 'relative' ,
197
204
top : '70%' ,
198
205
backgroundColor : '$paper' ,
199
- width : 10 ,
200
- height : 10 ,
206
+ width : '$3' ,
207
+ height : '$3' ,
201
208
transform : 'rotate(45deg)' ,
202
209
borderTopLeftRadius : 2
203
210
} )
@@ -234,9 +241,9 @@ const StyledViewport = styled(Viewport, {
234
241
235
242
const ContentList = styled ( 'ul' , {
236
243
display : 'grid' ,
237
- padding : 22 ,
238
- margin : 0 ,
239
- columnGap : 10 ,
244
+ padding : '$5' ,
245
+ margin : '$0' ,
246
+ columnGap : '$3' ,
240
247
listStyle : 'none' ,
241
248
242
249
variants : {
@@ -262,17 +269,18 @@ const ListItem = styled('li', {})
262
269
263
270
// TODO: Replace/Match up with CC Links
264
271
const LinkTitle = styled ( 'div' , {
265
- fontWeight : 500 ,
266
- lineHeight : 1.2 ,
267
- marginBottom : 5 ,
268
- color : violet . violet12
272
+ fontWeight : '$bold' ,
273
+ fontSize : '$0' ,
274
+ lineHeight : '$body' ,
275
+ marginBottom : '$2' ,
276
+ color : '$text'
269
277
} )
270
278
271
279
const LinkText = styled ( 'p' , {
272
280
all : 'unset' ,
273
- color : mauve . mauve11 ,
274
- lineHeight : 1.4 ,
275
- fontWeight : 'initial '
281
+ color : '$textSecondary' ,
282
+ lineHeight : '$body' ,
283
+ fontWeight : '$regular '
276
284
} )
277
285
278
286
type ContentListItemProps = ComponentProps < typeof StyledLink > & {
@@ -291,7 +299,7 @@ const ContentListItem = forwardRef<
291
299
css = { {
292
300
padding : 12 ,
293
301
borderRadius : 6 ,
294
- '&:hover' : { backgroundColor : mauve . mauve3 }
302
+ '&:hover' : { backgroundColor : '$colors$primary7' }
295
303
} }
296
304
>
297
305
< >
0 commit comments