Mouse over effects in wasm
Provide user feedback
Take the template app, add a button to the mainpage and note that in UWP when the mouse moves over the button, the border changes colour. Do the same in wasm and there is no visual feedback. Its cosmetic, but makes demos look nicer and helps overcome user resistance to new technologies.
MainPage.xaml:
<Page
x:Class="UnoMouseOver.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:UnoMouseOver"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Button>dafdf</Button>
</Grid>
</Page>
Do you want to take a stab at implementing this @yowl? Let us know if you need any guidance/help.
I can have a go, but I'm not an artist. Can we lift the storyboards from somewere?
👋 got your email @yowl — leave it with us.
Alright so this is what I see:
When the pointer hovers over a button the visual state is updated.
When the pointer hovers over a button the visual state is not updated.
n/a - touch screen device doesn't have hovering (yes, android can support mice but let's ignore this edge case for now)
n/a - touch screen device doesn't have hovering.
This requires https://github.com/unoplatform/uno/pull/1256, I'll includes those states as part of the PR
This has been fixed by https://github.com/unoplatform/uno/pull/1256 (for WASM and Android)
I'm closing the issue, feel free to re-open it if there is any issue.
Most helpful comment
This requires https://github.com/unoplatform/uno/pull/1256, I'll includes those states as part of the PR