Skip to content

Commit

Permalink
feat(ld-crumb): switch last/non-last crumb link styles
Browse files Browse the repository at this point in the history
  • Loading branch information
renet committed Mar 18, 2024
1 parent 9f9a7aa commit 71eb431
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions src/liquid/components/ld-breadcrumbs/ld-crumb/ld-crumb.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,13 @@

.ld-breadcrumbs li:not(:last-of-type) .ld-link,
.ld-crumb__link:not(.ld-crumb__link--current)::part(anchor) {
--ld-link-col: var(--ld-col-neutral-600);

font-weight: normal;
margin-right: calc(var(--ld-crumb-gap) + 0.5em);

&:hover {
--ld-link-col: var(--ld-thm-primary-hover);
}

&:focus:focus-visible {
--ld-link-col: var(--ld-thm-primary-focus);
}

&:active {
--ld-link-col: var(--ld-thm-primary-active);
}
}

.ld-breadcrumbs li:last-of-type .ld-link,
.ld-crumb__link--current {
.ld-crumb__link--current::part(anchor) {
--ld-link-col: var(--ld-col-neutral-600);
cursor: default;
font-weight: normal;
pointer-events: none;
}

0 comments on commit 71eb431

Please sign in to comment.