✨ Add Link component

Inline link with action (default) and neutral variants, plus an
inlineText mode that keeps the underline when embedded in body text.
Includes styles and a website example.
This commit is contained in:
Aksel Mini committed 2026-09-10 13:00:00 +02:00
1 parent 7b7b13f6e6
commit 39f49989eb
6 files changed
+78

No files matched your search

+1
View File
@@ -6,3 +6,4 @@
@import "./alert.css";
@import "./accordion.css";
@import "./modal.css";
@import "./link.css";
+26
View File
@@ -0,0 +1,26 @@
/**
* Link
*/
.navds-link {
color: var(--a-icon-action);
text-decoration: none;
text-underline-offset: 0.15em;
}
.navds-link:hover {
text-decoration: underline;
}
.navds-link--neutral {
color: var(--a-text-default);
}
.navds-link--inline-text {
text-decoration: underline;
}
.navds-link:focus-visible {
outline: 2px solid var(--a-border-focus);
outline-offset: 2px;
}