discourse/app/assets/stylesheets/common/components/d-breadcrumbs.scss
Ted Johansson c3367c329c
DEV: Make breadcrumb separators unclickable icons (#29817)
The current breadcrumb separators are ">" characters that are added as pseudo-elements. These become part of the clickable area for the links, which causes mis-clicks.

This PR does two things:

- Replace the pseudo-element with a DIcon.
- Make sure the separator is not clickable.
2024-11-19 16:42:43 +08:00

31 lines
435 B
SCSS

.d-breadcrumbs {
display: flex;
margin: var(--space-2) 0 var(--space-4) 0;
&__item {
list-style-type: none;
}
&__link,
&__link:visited {
color: var(--primary-medium);
}
li {
.separator {
margin-right: var(--space-1);
.d-icon {
color: var(--primary-medium);
font-size: var(--font-down-1);
}
}
}
li:last-child {
.separator {
display: none;
}
}
}