Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: #333 - gray underline for default link on visited state + force … #335

Merged
merged 1 commit into from
Jun 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 29 additions & 6 deletions packages/theme/src/puik-link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,26 @@
@apply cursor-pointer
relative
text-primary

underline
decoration-auto
underline-offset-[2px]
decoration-primary-500

transition-all
duration-150;

&:hover,
&:active,
&:visited {
@apply decoration-primary underline-offset-[5px];
@apply underline-offset-[5px];
}

&:hover,
&:visited:hover {
@apply decoration-primary;
}

&:focus-visible {
@apply outline-none ring-2 ring-blue rounded-[4px] shadow-none;
@apply outline-none ring-2 ring-blue rounded-[4px] shadow-none decoration-primary-800;
}

&__target__icon {
Expand Down Expand Up @@ -49,13 +52,33 @@
}
@apply decoration-primary;
}

&--articles {
@apply decoration-primary-500;

&:visited {
@apply text-purple-700 decoration-primary-500;
}

&:hover, &:visited:hover {
@apply decoration-primary;
}

&:focus-visible {
@apply decoration-primary-800;
}
}

&--high-contrast.puik-link--articles {
@apply text-primary decoration-primary;

&:visited {
@apply text-primary decoration-primary;
}

&:visited:hover {
@apply decoration-primary;
}

&:focus-visible {
@apply decoration-primary-800;
Expand Down
Loading