iced_web icon indicating copy to clipboard operation
iced_web copied to clipboard

`Button` hovered style sheet not working in `iced_web`

Open jgarvin opened this issue 3 years ago • 2 comments

In the tour example there is this code:

        fn hovered(&self) -> button::Style {
            button::Style {
                text_color: Color::WHITE,
                shadow_offset: Vector::new(1.0, 2.0),
                ..self.active()
            }
        }

However nothing actually happens when you hover over the buttons, at least when using the web backend with Chrome. I tried changing the text color to see if I could make anything happen but still nothing.

jgarvin avatar Dec 14 '20 04:12 jgarvin

Might be a bug on the web backend - hover styles work fine on winit + wgpu for me.

twitchyliquid64 avatar Dec 15 '20 07:12 twitchyliquid64

State based styling is currently not implemented for the button widget on iced_web.

Kaiden42 avatar Dec 15 '20 11:12 Kaiden42