Skip to content

Commit

Permalink
Lowered priority of visited link style for link component (#1348)
Browse files Browse the repository at this point in the history
Co-authored-by: Scott Rees <6165315+reesscot@users.noreply.github.com>
  • Loading branch information
Jesmaster and reesscot authored Feb 17, 2022
1 parent a1f4974 commit 4c6d198
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/rare-peaches-relax.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@aws-amplify/ui": patch
---

Lowered priority of visited link style for link component
11 changes: 6 additions & 5 deletions packages/ui/src/theme/css/component/link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
text-decoration: var(--amplify-components-link-text-decoration);
// all:unset removes this, so we have to add it back.
cursor: pointer;


&:visited {
color: var(--amplify-components-link-visited-color);
text-decoration: var(--amplify-components-link-visited-text-decoration);
}
&:active {
color: var(--amplify-components-link-active-color);
text-decoration: var(--amplify-components-link-active-text-decoration);
Expand All @@ -16,10 +20,7 @@
color: var(--amplify-components-link-hover-color);
text-decoration: var(--amplify-components-link-hover-text-decoration);
}
&:visited {
color: var(--amplify-components-link-visited-color);
text-decoration: var(--amplify-components-link-visited-text-decoration);
}

&[data-size='small'] {
font-size: var(--amplify-components-link-small-font-size);
}
Expand Down

0 comments on commit 4c6d198

Please sign in to comment.