Skip to content

Commit

Permalink
Merge pull request #1192 from dpc-sdp/feature/R20-1987-visited-link-s…
Browse files Browse the repository at this point in the history
…tyling

[R20-1987] Removed visited styling from all links, reapply only to search results
  • Loading branch information
dylankelly authored May 29, 2024
2 parents a394e8d + c6effcf commit 8d8a6b4
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/ripple-ui-core/src/components/alert/RplAlert.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@

&__link {
--local-clr-link: var(--rpl-clr-type-light);
--local-clr-link-visited: var(--rpl-clr-type-light);

display: inline-block;
color: var(--rpl-clr-type-light);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
border-top: var(--rpl-border-2) solid var(--rpl-clr-type-footer-accessible);

--local-clr-link: var(--rpl-clr-type-footer-contrast);
--local-clr-link-visited: var(--rpl-clr-type-footer-contrast);
--local-clr-link-active: var(--rpl-clr-type-footer-contrast);
--local-icon-vertical-spacing: 2px; /* Magic margin for visual symmetry */
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
.rpl-header-links--link {
a {
--local-clr-link: var(--rpl-clr-type-default);
--local-clr-link-visited: var(--local-clr-link);

color: var(--local-clr-link, var(--rpl-clr-link));
white-space: nowrap;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
@import '@dpc-sdp/ripple-ui-core/style/breakpoints';

.rpl-search-result {
--local-clr-link-visited: var(--rpl-clr-link-visited);

padding-top: var(--rpl-sp-5);
padding-bottom: var(--rpl-sp-5);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}

&:visited {
color: var(--local-clr-link-visited, var(--rpl-clr-link-visited));
color: var(--local-clr-link-visited, currentcolor);
}

&:active {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
.rpl-form-alert__description,
.rpl-form-alert__fields {
--local-clr-link: var(--rpl-clr-type-default);
--local-clr-link-visited: var(--rpl-clr-type-default);
--local-clr-link-active: var(--rpl-clr-type-default);
margin-top: var(--rpl-sp-4);
}
Expand Down

0 comments on commit 8d8a6b4

Please sign in to comment.