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

Label with FormattedText does not set TextColor correctly when switching from LightMode to DarkMode or vice versa #10929

Open
Heinz12 opened this issue Jun 2, 2020 · 0 comments

Comments

@Heinz12
Copy link

Heinz12 commented Jun 2, 2020

Description

If a Label has a FormattedText then the TextColor is not set correcly when switching from Dark to Light or vice versa!
For a Label without FormattedText it is working correctly.
See Screenshots below.

         <Label Text="{views:Translate SettingsActiveUserProfileTitle}" FontSize="Title"/>
            <Label>
               <Label.FormattedText>
                    <FormattedString>
                        <Span Text="{views:Translate CustomerNumberPlaceHolder}" FontSize="Micro" />
                        <Span Text="{x:Static system:Environment.NewLine}"/>
                        <Span Text="{Binding BmdUserProfile.CustomerNumber}" FontAttributes="Bold" />
                    </FormattedString>
                </Label.FormattedText>
            </Label> 

Expected Behavior

Should change the TextColor like the Label does.

Screenshots

Switching from Light to Dark:

BugLabelTextColorSwitchFormLightToDark

####Switching form Dark to Light:

BugLabelTextColorSwitchFormDarkToLight

@Heinz12 Heinz12 added s/unverified New report that has yet to be verified t/bug 🐛 labels Jun 2, 2020
@samhouts samhouts added this to New in Triage via automation Jun 15, 2020
@StephaneDelcroix StephaneDelcroix self-assigned this Jun 17, 2020
@StephaneDelcroix StephaneDelcroix moved this from New to Ready For Work in Triage Jun 17, 2020
@StephaneDelcroix StephaneDelcroix removed the s/unverified New report that has yet to be verified label Jun 17, 2020
@samhouts samhouts moved this from Ready For Work to Needs Estimate in Triage Jun 18, 2020
@samhouts samhouts added this to To do in DarkMode/AppThemes Jul 13, 2020
@samhouts samhouts added this to the 5.0.0 milestone Aug 13, 2020
@samhouts samhouts added this to To do in vNext+1 (5.0.0) Aug 13, 2020
@samhouts samhouts removed this from the 5.0.0 milestone Nov 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Triage
  
Needs Estimate
Development

No branches or pull requests

4 participants