maui icon indicating copy to clipboard operation
maui copied to clipboard

HTML Label not applying Bold or Italics on iOS

Open crobibero opened this issue 1 year ago • 10 comments

Description

Attempting to display Bold or Italics text on iOS (17.0) just displays the text as normal. Android works as expected.

image

Steps to Reproduce

<Label TextType="Html">
    <Label.Text>
        <![CDATA[
            <strong>Bold Text</strong><br>
            <em>italics</em><br>
            <ul>
              <li>Item 1</li>
              <li>Item 2</li>
            </ul>
        ]]>
    </Label.Text>
</Label>

Link to public reproduction project repository

https://github.com/crobibero/maui-html-styling

Version with bug

8.0.3

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms, Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS

Did you find any workaround?

No

Relevant log output

No response

crobibero avatar Feb 05 '24 22:02 crobibero

@PureWeen This is fixed on the latest main branch

kubaflo avatar Feb 09 '24 15:02 kubaflo

Can you test with the latest nightly build? https://github.com/dotnet/maui/wiki/Nightly-Builds

PureWeen avatar Feb 09 '24 15:02 PureWeen

Hi @crobibero. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

ghost avatar Feb 09 '24 15:02 ghost

Thank you for the response! Unless I am doing something wrong I don't see it as fixed as of nightly 8.0.10-nightly.100068.0.10-nightly.10006. I tried with and without specifiying <MauiVersion>8.0.6</MauiVersion> in the csproj. Additonally the screenshot posted above doesn't show that the issue is actually fixed when minimal styling is applied.

https://github.com/crobibero/maui-html-styling/tree/nightly-test

Screenshots from nightly: image

crobibero avatar Feb 09 '24 16:02 crobibero

@crobibero I see, the second label respects these properties on the main branch, but the first one with Styles applied does not

kubaflo avatar Feb 09 '24 16:02 kubaflo

@crobibero @PureWeen may be fixed in this PR I propose: https://github.com/dotnet/maui/pull/20488

kubaflo avatar Feb 10 '24 02:02 kubaflo

Any update on this? I see that the PR is stuck

davidchieregato avatar Mar 20 '24 13:03 davidchieregato

This is still reproducible with the 8.0 SR3 update (8.0.14)

nmanocha avatar Apr 11 '24 20:04 nmanocha

This issue need attention

EliaGuarnieri avatar Apr 18 '24 13:04 EliaGuarnieri

3 months and this is still an issue...

davidchieregato avatar May 06 '24 14:05 davidchieregato

Anyone got a solution for iOS? Any platform specific code we could use to work this around? PR is still stuck

nmanocha avatar May 14 '24 19:05 nmanocha

Any update? I see that one error in the tests is "Baseline snapshot not yet created". Is the PR blocked for a missing screenshot?

davidchieregato avatar Jul 01 '24 10:07 davidchieregato

It happens to me, too. Any update on this?

michele-guion avatar Aug 02 '24 10:08 michele-guion