@@ -2,19 +2,19 @@ import * as React from "react"
2
2
import { cva , type VariantProps } from "class-variance-authority"
3
3
import { Slot } from "@radix-ui/react-slot"
4
4
5
- import { BaseLink , type LinkProps } from "@/components/Link"
6
-
7
5
import { cn } from "@/lib/utils/cn"
8
6
import { type MatomoEventOptions , trackCustomEvent } from "@/lib/utils/matomo"
9
7
import { scrollIntoView } from "@/lib/utils/scrollIntoView"
10
8
9
+ import { BaseLink , type LinkProps } from "../Link"
10
+
11
11
const buttonVariants = cva (
12
12
"pointer inline-flex gap-2 items-center justify-center rounded border border-solid border-current text-primary transition focus-visible:outline focus-visible:outline-4 focus-visible:outline-primary-hover focus-visible:-outline-offset-1 disabled:text-disabled disabled:pointer-events-none hover:text-primary-hover [&[data-secondary='true']]:text-body [&>svg]:flex-shrink-0" ,
13
13
{
14
14
variants : {
15
15
variant : {
16
16
solid :
17
- "! text-background bg-primary border-transparent disabled:bg-disabled disabled:text-background hover:text-background hover:bg-primary-hover hover:shadow-button-hover active:shadow-none" ,
17
+ "text-background bg-primary border-transparent disabled:bg-disabled disabled:text-background hover:text-background hover:bg-primary-hover hover:shadow-button-hover active:shadow-none" ,
18
18
outline : "hover:shadow-button-hover active:shadow-none" ,
19
19
ghost : "border-transparent" ,
20
20
link : "border-transparent font-bold underline py-0 px-1 active:text-primary" ,
@@ -120,15 +120,8 @@ const ButtonLink = React.forwardRef<HTMLAnchorElement, ButtonLinkProps>(
120
120
< Button asChild { ...buttonProps } >
121
121
< BaseLink
122
122
ref = { ref }
123
- activeStyle = { { } }
124
- // TODO: Redress this override when migrating the link component
125
- color = {
126
- buttonProps . variant === "solid" ? "background.base" : undefined
127
- }
128
- textDecor = "none"
129
- _hover = { {
130
- textDecor : "none" ,
131
- } }
123
+ className = "no-underline hover:no-underline"
124
+ activeClassName = ""
132
125
{ ...linkProps }
133
126
onClick = { handleClick }
134
127
>
0 commit comments