xamarin/Xamarin.Forms

[iOS] TextColor on Span's Implicit Style affects SearchBar PlaceholderColor

Ouverte

#5 355 ouverte le 23 févr. 2019

 (2 commentaires) (0 réaction) (0 personne assignée)C# (1 926 forks)batch import
e/2 :clock2:good first issuehelp wantedi/lowinactivep/iOS 🍎t/bug :bug:up-for-grabs

Métriques du dépôt

Stars
 (5 644 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Description

Setting the Spans TextColor from an implicit style in the App.xaml makes all SearchBars have that color in their Placeholder.

Steps to Reproduce

  1. Put this in the App.xaml
<Style TargetType="Span">
    <Setter Property="TextColor" Value="Red" />
</Style>
  1. Put this in the main page:
<SearchBar Placeholder="Search..." PlaceholderColor="Green" />

Expected Behavior

Green placeholder.

Actual Behavior

Red placeholder.

Basic Information

  • Version with issue: happens since TextColor in Span was introduced in XF 3.1
  • Last known good version: N/A
  • Platform Target Frameworks:
    • iOS: 12.1
    • Android: N/A
    • UWP: N/A

Screenshots

Reproduction Link

https://drive.google.com/open?id=1U9uVOpJ7HalQJZK_I6ZH0Xck5yC9kHsw

Guide contributeur