button: Remove duplicate disabled style (#1529)
This commit is contained in:
parent
80689264e2
commit
f33d112819
1 changed files with 0 additions and 7 deletions
|
|
@ -537,13 +537,6 @@ impl RenderOnce for Button {
|
||||||
(on_hover)(hovered, window, cx);
|
(on_hover)(hovered, window, cx);
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.when(self.disabled, |this| {
|
|
||||||
let disabled_style = style.disabled(self.outline, cx);
|
|
||||||
this.bg(disabled_style.bg)
|
|
||||||
.text_color(disabled_style.fg)
|
|
||||||
.border_color(disabled_style.border)
|
|
||||||
.shadow_none()
|
|
||||||
})
|
|
||||||
.child({
|
.child({
|
||||||
h_flex()
|
h_flex()
|
||||||
.id("label")
|
.id("label")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue