Remove default hover state for icon buttons
This commit is contained in:
parent
101fe7fbb5
commit
b218ab4755
1 changed files with 4 additions and 1 deletions
|
@ -111,7 +111,10 @@ impl<V: 'static> IconButton<V> {
|
||||||
.p_1()
|
.p_1()
|
||||||
.bg(bg_color)
|
.bg(bg_color)
|
||||||
.cursor_pointer()
|
.cursor_pointer()
|
||||||
.hover(|style| style.bg(bg_hover_color))
|
// Nate: Trying to figure out the right places we want to show a
|
||||||
|
// hover state here. I think it is a bit heavy to have it on every
|
||||||
|
// place we use an icon button.
|
||||||
|
// .hover(|style| style.bg(bg_hover_color))
|
||||||
.active(|style| style.bg(bg_active_color))
|
.active(|style| style.bg(bg_active_color))
|
||||||
.child(IconElement::new(self.icon).color(icon_color));
|
.child(IconElement::new(self.icon).color(icon_color));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue