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

[Bug] Not able to apply CSS styling to Span control #5979

Open
Depechie opened this issue Apr 23, 2019 · 1 comment
Open

[Bug] Not able to apply CSS styling to Span control #5979

Depechie opened this issue Apr 23, 2019 · 1 comment

Comments

@Depechie
Copy link
Contributor

@Depechie Depechie commented Apr 23, 2019

Description

Unable to use CSS styling on Span control inside FormattedText of Label.
Although the docs mention this https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/styles/css/ ...

Steps to Reproduce

            <Label>
                <Label.FormattedText>
                    <FormattedString>
                        <Span Text="We want to hear your thoughts! Feel free to join our " />
                        <Span Text="Slack Organization" TextDecorations="Underline" />
                        <Span Text=" or send us an email at " />
                        <Span Text="testing@gmail.com" TextColor="#69d5b1" />
                    </FormattedString>
                </Label.FormattedText>
            </Label> 

We wanted to apply text color and text decoration through CSS styling, but were unable to do so.

Reproduction Link

Repository containing the page https://github.com/Coding-Coach/mobile/blob/556191e0d429a80a036d0928998255654c88d4e4/CodingCoach/CodingCoach/Views/ContactPage.xaml

@Depechie Depechie changed the title [Bug] [Bug] Not able to apply CSS styling to Span control Apr 23, 2019
@pauldipietro pauldipietro added this to New in Triage Apr 23, 2019
@Depechie

This comment has been minimized.

Copy link
Contributor Author

@Depechie Depechie commented Apr 23, 2019

hey @StephaneDelcroix are we doing something silly here with css? Or are we reading the docs about css wrong? ( Span and text decoration is mentioned as supported )

@StephaneDelcroix StephaneDelcroix self-assigned this Apr 24, 2019
@PureWeen PureWeen added e/3 🕒 and removed s/unverified labels Apr 29, 2019
@PureWeen PureWeen moved this from New to Ready For Work in Triage Apr 29, 2019
@samhouts samhouts added this to To do in Other Ready For Work Apr 30, 2019
@samhouts samhouts removed this from Ready For Work in Triage Apr 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.