Wire up active style for Breadcrumb
This commit is contained in:
parent
92542e6b94
commit
1be1bffb29
1 changed files with 2 additions and 2 deletions
|
@ -41,13 +41,13 @@ impl<S: 'static + Send + Sync + Clone> Breadcrumb<S> {
|
||||||
let symbols_len = self.symbols.len();
|
let symbols_len = self.symbols.len();
|
||||||
|
|
||||||
h_stack()
|
h_stack()
|
||||||
|
.id("breadcrumb")
|
||||||
.px_1()
|
.px_1()
|
||||||
.text_sm()
|
.text_sm()
|
||||||
.text_color(color.text_muted)
|
.text_color(color.text_muted)
|
||||||
.rounded_md()
|
.rounded_md()
|
||||||
.hover(|style| style.bg(color.ghost_element_hover))
|
.hover(|style| style.bg(color.ghost_element_hover))
|
||||||
// TODO: Add this when active is ready
|
.active(|style| style.bg(color.ghost_element_active))
|
||||||
// .active(|style| style.bg(color.ghost_element_active))
|
|
||||||
.child(self.path.clone().to_str().unwrap().to_string())
|
.child(self.path.clone().to_str().unwrap().to_string())
|
||||||
.child(if !self.symbols.is_empty() {
|
.child(if !self.symbols.is_empty() {
|
||||||
self.render_separator(cx)
|
self.render_separator(cx)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue