-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Bug] Not able to apply CSS styling to Span control #5979
Comments
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 ) |
@Depechie I checked your source code, I couldn't find where have you included your CSS in |
hey @ackava yeah that was the whole point... it was just not working, so this issue report is a plee for having an example on how to do this. Also more info https://github.com/xamarin/xamarin-forms-samples/issues/457 |
@Depechie I guess its isn't this sufficient?
Mentioned at https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/styles/css/#xaml |
Ow no not that basic... I really did try a full css :) |
So for clarification @ackava I wanted to set the Underline in the second Span element in CSS. As the docs mention this should be possible ( https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/styles/css/ ). But no matter what I put in the styles.css, it would not be applied. |
@ackava I found the original link: Coding-Coach/mobile#21 and at that time we talked about it with @StephaneDelcroix and it was said to be a short coming on Span - css in XF. Hence the filed issue. |
+1 |
Description
Unable to use CSS styling on
Span
control insideFormattedText
ofLabel
.Although the docs mention this https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/styles/css/ ...
Steps to Reproduce
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
The text was updated successfully, but these errors were encountered: