Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Button hovered style sheet not working in iced_web #7

Open
jgarvin opened this issue Dec 14, 2020 · 2 comments
Open

Button hovered style sheet not working in iced_web #7

jgarvin opened this issue Dec 14, 2020 · 2 comments

Comments

@jgarvin
Copy link

jgarvin commented Dec 14, 2020

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.

@twitchyliquid64
Copy link

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

@Kaiden42
Copy link

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

@hecrj hecrj changed the title Jan 20, 2022
@hecrj hecrj transferred this issue from iced-rs/iced Jan 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants