From 41bb41de2b923fdf3594e4ad14d6df07ed4fcbf6 Mon Sep 17 00:00:00 2001 From: Eirik Backer Date: Fri, 20 Dec 2024 11:03:00 +0100 Subject: [PATCH] fix(Link): missing underline when using Tailwind (#2923) Fix: Link `underline` when using Tailwind --- .changeset/fair-gorillas-pay.md | 5 +++++ packages/css/src/link.css | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/fair-gorillas-pay.md diff --git a/.changeset/fair-gorillas-pay.md b/.changeset/fair-gorillas-pay.md new file mode 100644 index 0000000000..d8adf37859 --- /dev/null +++ b/.changeset/fair-gorillas-pay.md @@ -0,0 +1,5 @@ +--- +"@digdir/designsystemet-css": patch +--- + +Link: Fix missing underline when using Tailwind diff --git a/packages/css/src/link.css b/packages/css/src/link.css index e1fd1b7e22..5de55838f4 100644 --- a/packages/css/src/link.css +++ b/packages/css/src/link.css @@ -11,6 +11,7 @@ color: var(--dsc-link-color); outline: none; + text-decoration-line: underline; text-decoration-style: solid; text-decoration-thickness: var(--dsc-link-text-decoration-thickness); text-underline-offset: 0.27em; /* 5px ish */