Change colors on breadcrumbs #45
Replies: 3 comments 8 replies
-
I believe this does what you want it to do. sl-breadcrumb-item::part(label) {
color: orange;
}
sl-breadcrumb-item::part(separator) {
color: blue;
}
sl-breadcrumb-item:last-of-type::part(label) {
color: deeppink;
} Example: https://codepen.io/claviska/pen/oNRKGmW?editors=1100 |
Beta Was this translation helpful? Give feedback.
-
I did get this working, including the mouse hover, but the syntax is quite "crazy" - or rather quite complex, if you are not a world champ in "vanilla" CSS. For WA I would prefer a Bootstrap approach, where this is more class-based, making it quite easy to color/style customize. |
Beta Was this translation helpful? Give feedback.
-
E.g. how would you actually remove the hand-cursor on breadcrumbs NOT having a link enabled? |
Beta Was this translation helpful? Give feedback.
-
For this Web Awesome code:
It would be nice if it was possible to easily define the 3 colors in scope here:
Level 1
+Level 2
)Level 3
)As seen on this Shoelace.style Discord post, then it seems to be black magic how to set these colors - quite complex.
Please implement a better styling option here? 😁
Beta Was this translation helpful? Give feedback.
All reactions