Skip to content
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

Link in Label with TextType HTML is not clickable #21328

Open
EduardBeke opened this issue Mar 20, 2024 · 4 comments
Open

Link in Label with TextType HTML is not clickable #21328

EduardBeke opened this issue Mar 20, 2024 · 4 comments
Labels
area-controls-label Label, Span platform/android 🤖 platform/iOS 🍎 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@EduardBeke
Copy link

EduardBeke commented Mar 20, 2024

Description

Issue:
In MAUI, there is an issue where links within a Label are not clickable when using TextType="Html".

Expected Behavior:
When using TextType="Html", links within the Label should be clickable, allowing users to navigate to the linked resource.

Actual Behavior:
The link within the Label remains unclickable, preventing users from interacting with it.

Impact:
This issue affects user experience and functionality, especially in scenarios where clickable links are essential for navigation or accessing external resources.

Code Snippet:
<Label TextType="Html" Text="{Binding NotificationText}" />
NotificationText could be something like 'Some Text <a href="https://www.example.com">Example</a> Other Text'

Since the text utilized originates from the server in HTML format, potentially including links, implementing a static link is not feasible as a workaround at this stage. Any suggestions or workarounds to address this issue would be greatly appreciated.

Steps to Reproduce

  1. Define a Label in a MAUI project.
  2. Set the TextType property to "Html".
  3. Bind the Text attribute to a property containing HTML content with a clickable link.
  4. Run the application and observe that the link within the Label is not clickable.

Version with bug

8.0.6 SR1

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android

Did you find any workaround?

No

@EduardBeke EduardBeke added the t/bug Something isn't working label Mar 20, 2024
@RoiChen001
Copy link

RoiChen001 commented Mar 21, 2024

Can repro this issue at Android platform on the latest 17.10 preview2(8.0.10).
image

@RoiChen001 RoiChen001 added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Mar 21, 2024
@Eilon Eilon added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Mar 28, 2024
@jamers99
Copy link

jamers99 commented May 2, 2024

@RoiChen001 @samhouts any update on this? Is this going to be fixed?

@Eilon Eilon added area-controls-label Label, Span and removed legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor labels May 11, 2024
@hinnerkweiler
Copy link

To be fair I think I tried it a while ago and just did again today. Previously Links did just not show up as a links at all. That better in a very specific way, because having them decorated prominently is a step forward and adds a bit od pressure to make them actually work as link ;)

@tonyedwardspz
Copy link

This would be a pretty useful addition.

@samhouts samhouts removed s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jul 3, 2024
@samhouts samhouts added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-label Label, Span platform/android 🤖 platform/iOS 🍎 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants