feat: add a textDecoration variant to links
This commit is contained in:
@@ -46,6 +46,7 @@ export default async function IntroSection({
|
|||||||
className={styles.introLink}
|
className={styles.introLink}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
variant="icon"
|
variant="icon"
|
||||||
|
textDecoration="underline"
|
||||||
color="peach80"
|
color="peach80"
|
||||||
href={tripAdvisor.webUrl}
|
href={tripAdvisor.webUrl}
|
||||||
>
|
>
|
||||||
@@ -59,6 +60,7 @@ export default async function IntroSection({
|
|||||||
className={styles.introLink}
|
className={styles.introLink}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
color="peach80"
|
color="peach80"
|
||||||
|
textDecoration="underline"
|
||||||
variant="icon"
|
variant="icon"
|
||||||
href="#"
|
href="#"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -19,7 +19,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.introLink {
|
.introLink {
|
||||||
text-decoration: underline !important;
|
|
||||||
text-decoration-color: var(--Scandic-Peach-80);
|
text-decoration-color: var(--Scandic-Peach-80);
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ export default function Link({
|
|||||||
color,
|
color,
|
||||||
href,
|
href,
|
||||||
partialMatch = false,
|
partialMatch = false,
|
||||||
|
textDecoration,
|
||||||
size,
|
size,
|
||||||
prefetch,
|
prefetch,
|
||||||
variant,
|
variant,
|
||||||
@@ -24,6 +25,7 @@ export default function Link({
|
|||||||
const classNames = linkVariants({
|
const classNames = linkVariants({
|
||||||
active: isActive,
|
active: isActive,
|
||||||
className,
|
className,
|
||||||
|
textDecoration,
|
||||||
color,
|
color,
|
||||||
size,
|
size,
|
||||||
variant,
|
variant,
|
||||||
|
|||||||
@@ -1,7 +1,14 @@
|
|||||||
.link {
|
.link {
|
||||||
|
}
|
||||||
|
|
||||||
|
.noDecoration {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.underline {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
.default {
|
.default {
|
||||||
font-family: var(--typography-Body-Regular-fontFamily);
|
font-family: var(--typography-Body-Regular-fontFamily);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,10 @@ export const linkVariants = cva(styles.link, {
|
|||||||
small: styles.small,
|
small: styles.small,
|
||||||
regular: styles.regular,
|
regular: styles.regular,
|
||||||
},
|
},
|
||||||
|
textDecoration: {
|
||||||
|
none: styles.noDecoration,
|
||||||
|
underline: styles.underline,
|
||||||
|
},
|
||||||
variant: {
|
variant: {
|
||||||
breadcrumb: styles.breadcrumb,
|
breadcrumb: styles.breadcrumb,
|
||||||
default: styles.default,
|
default: styles.default,
|
||||||
@@ -32,6 +36,7 @@ export const linkVariants = cva(styles.link, {
|
|||||||
defaultVariants: {
|
defaultVariants: {
|
||||||
color: "black",
|
color: "black",
|
||||||
variant: "default",
|
variant: "default",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
compoundVariants: [
|
compoundVariants: [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user