-
Notifications
You must be signed in to change notification settings - Fork 700
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RichTextBlock hyperlinks do not work with touch on Windows 11 #6513
Comments
From what I can tell, this is caused by CommonStyles/Hyperlink_themeresources.xaml#L23 In my opinion, just strike the HyperlinkUnderlineVisible line in the WinUI style, since a) it didn’t work anyway, and b) it would resolve this issue, which is a major usability concern. |
CC @ranjeshj |
@gegao18 I think this one's already fixed? |
Looks like latest dev build 22572 has a mitigation. I really hope this is also going into servicing pipeline for existing Windows 11 installs.
|
I am on 22581 and nothing changed. I don't understand why this has constantly being ignored when it's simply a one link patch as @BreeceW has shown, in the meanwhile a lot of users cannot open links without a keyboard or a mouse attached and ofc they blame the application developers. I understand you are looking for a fix rather than a patch, but leaving users with a broken behavior in the meanwhile sounds like a really bad decision. For a bug like this one, even affecting accessibility I think the minimum that could be done is releasing a patch in the next winui release |
I there any update to this? Over a year ago it was noted as being fixed in an upcoming W11 build and it is still not. I am almost finished with a UWP app with over 300 RTB hyperlinks and, now that I am testing touch, I see none of them work with touch. It's useless to the end user on a touch device. But I did get Clip Champ. |
I've asked the team to dive into this. |
We have a fix for this regression in main. Next step is to get it into 1.3 servicing. |
How about UWP apps? Will they keep showing this bug for ever? |
Is there any update for this issue? I am hoping to release my app soon and a whole section does not work with touch. |
Fixed in 1.3.2 |
Sorry, but what does Fixed in 1.3.2 actually mean? It does not seem to have anything to do with my Windows Version. After digging it seems to refer to the Windows App SDK, but how does this fix WinUI2 UWP apps? |
I still find quite embarassing how this issue is being triaged, it's evident that is a bug affecting both UWP and WinUI 3, even inbox apps are broken for this reason, but you keep mentioning only WinUI 3 and WASDK..... |
@bpulliam Is this going to be considered for OS servicing (UWP/WinUI 2)? Apps such as Mail are affected. |
This is fixed and should be closed according to the latest release notes. |
No @bogdan-patraucean, this is not ready for closure. There is still the outstanding question of servicing this for UWP/WinUI 2 targets. |
I realize in my earlier comment from 2021 that I did not make it clear that if this issue is blocking your app with WinUI 2, you can work around it by adding the following resource <Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<muxc:XamlControlsResources xmlns:muxc="using:Microsoft.UI.Xaml.Controls" />
<ResourceDictionary>
<x:Boolean x:Key="HyperlinkUnderlineVisible">True</x:Boolean>
</ResourceDictionary>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources> This lightweight style overrides the resource in WinUI 2’s default hyperlink style and tapping hyperlinks will start working again with touch. With that said, it’s still important to fix this bug in the OS. A WinUI 2 update changing the hyperlink style as above would also mitigate the problem. |
@BreeceW - Thanks for the clarification. I made the change, and (at first glance) it seems to work just fine for my app. |
Sorry, there are currently no plans to fix this in WinUI2. Please see this PR for more details - #8761 |
@ranjeshj I don't see how this issue is even related to the pr that has been linked |
I think what @ranjeshj was trying to say was there's a new policy in effect and the team doesn't deem this business critical.
|
@riverar and @MarcAnt01 that is correct. This issue is fixed in WinUI3. The bar for servicing fixes into WinUI2 is very high as mentioned in the PR. That said, looking closer, the fix for this is in OS Xaml codebase not in WinUI2. So this would be an OS servicing fix :/ |
Business Critical for whom? The developers and the users, or is something else more important? I understand not adding new features, but this once worked and then was broken. So seems the right thing to do is put it back the way it is supposed to be. |
The team should revise the decision, imagine a big app like Whatsapp in the store, it's affected by this bug and I cannot open links with touch. I understand that Microsoft doesn't care about touch at all, but since this was broken at a certain point and the fix seems quite trivial, why cannot you address this instead of forcing all the devs to use a one-line fix? The way Microsoft is handling this stuff not only degrades the user experience, but also contributes to increase the bad vision that most companies have of Microsoft. |
Describe the bug
Tapping a
Hyperlink
present inRichTextBlock
content does nothing on Windows 11.Steps to reproduce the bug
xamlcontrolsgallery://item/RichTextBlock
)hyperlinks
link in the second sample. Observe the browser opens.hyperlinks
link in the second sample. Observe nothing happens.Or create a blank app with one of the affected NuGet packages below.
Feedback Hub link from @MarcAnt01: https://aka.ms/AAf9oe4
❌ This critically impacts app accessibility. Please strongly consider for servicing. (cc: @codendone)
Expected behavior
Similar or same behavior (hyperlink handler executes, browser opens, etc.) in both click and tap scenarios.
NuGet package version
Windows app type
UWP/Win32
Device form factor
Desktop
Windows version
Windows 11 22000.194 (RTM) and above
The text was updated successfully, but these errors were encountered: