mirror of
https://github.com/bitwarden/android.git
synced 2024-12-28 20:08:43 +03:00
PM-3350 Fix for colored html text on iOS
This commit is contained in:
parent
0e75f3f5c8
commit
a31f15559f
2 changed files with 1 additions and 6 deletions
|
@ -7,10 +7,6 @@
|
||||||
if (DeviceInfo.Platform == DevicePlatform.iOS)
|
if (DeviceInfo.Platform == DevicePlatform.iOS)
|
||||||
{
|
{
|
||||||
FontFamily = "Menlo-Regular";
|
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)
|
else if (DeviceInfo.Platform == DevicePlatform.Android)
|
||||||
{
|
{
|
||||||
|
|
|
@ -59,12 +59,11 @@
|
||||||
<Setter Property="FontAttributes"
|
<Setter Property="FontAttributes"
|
||||||
Value="Bold" />
|
Value="Bold" />
|
||||||
</Style>
|
</Style>
|
||||||
<!--[MAUI-Migration][Color-default]-->
|
|
||||||
<Style TargetType="Label"
|
<Style TargetType="Label"
|
||||||
Class="text-html"
|
Class="text-html"
|
||||||
ApplyToDerivedTypes="True">
|
ApplyToDerivedTypes="True">
|
||||||
<Setter Property="TextColor"
|
<Setter Property="TextColor"
|
||||||
Value="#ffffff" />
|
Value="{x:Null}" />
|
||||||
<Setter Property="TextType"
|
<Setter Property="TextType"
|
||||||
Value="Html" />
|
Value="Html" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
Loading…
Reference in a new issue