1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-26 12:16:07 +01:00

PM-3350 Fix for colored html text on iOS

This commit is contained in:
Dinis Vieira 2023-11-11 15:05:51 +00:00
parent 0e75f3f5c8
commit a31f15559f
No known key found for this signature in database
GPG Key ID: 9389160FF6C295F3
2 changed files with 1 additions and 6 deletions

View File

@ -7,10 +7,6 @@
if (DeviceInfo.Platform == DevicePlatform.iOS)
{
FontFamily = "Menlo-Regular";
//[MAUI-Migration] Temporary Workaround for the Text to appear in iOS.
// A proper solution needs to be found to be able to have html text with different colors or alternatively use Label FormattedString Spans
TextColor = Colors.Black;
}
else if (DeviceInfo.Platform == DevicePlatform.Android)
{

View File

@ -59,12 +59,11 @@
<Setter Property="FontAttributes"
Value="Bold" />
</Style>
<!--[MAUI-Migration][Color-default]-->
<Style TargetType="Label"
Class="text-html"
ApplyToDerivedTypes="True">
<Setter Property="TextColor"
Value="#ffffff" />
Value="{x:Null}" />
<Setter Property="TextType"
Value="Html" />
</Style>