Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] Editor PlaceholderColor and BackgroundColor incorrect on UWP after upgrading to Xamarin.Forms 4.8 (from 4.5) #13573

Closed
ivanv-microsoft opened this issue Jan 28, 2021 · 4 comments · Fixed by #13728
Assignees
Labels
4.8.0 regression on 4.8.0 a/editor e/3 🕒 3 in-progress This issue has an associated pull request that may resolve it! p/UWP t/bug 🐛
Projects

Comments

@ivanv-microsoft
Copy link

ivanv-microsoft commented Jan 28, 2021

Description

Steps to Reproduce

  1. Create a new page with the following control
    <Editor Grid.Row="1" Grid.Column="0" x:Name="VerboseFeedback" Text="" Placeholder="Some long text, doesn't really matter" PlaceholderColor="Gray" VerticalOptions="Start" HorizontalOptions="FillAndExpand" MaxLength="4000" FontSize="12" HeightRequest="100" BackgroundColor="White" TextColor="Black" Margin="10,0,5,5" />
  2. Run it on different platforms

Expected Behavior

BackgroundColor is always White
TextColor is always Black
Placeholder text color is always Gray

Actual Behavior

When Editor control is in focus, Background color is "grayish", and White when not in focus

Basic Information

Works fine on Android

  • Version with issue:
  • Last known good version:
  • Platform Target Frameworks:
    • iOS:
    • Android:
    • UWP:
  • Android Support Library / AndroidX Version:
  • NuGet Packages:
  • Affected Devices:

Environment

Show/Hide Visual Studio info

Build Logs

Screenshots

Control_In_Focus_Wrong
Control_Not_In_Focus_Correct

Reproduction Link

Workaround

@ivanv-microsoft ivanv-microsoft added s/unverified New report that has yet to be verified t/bug 🐛 labels Jan 28, 2021
@samhouts samhouts added this to New in Triage Jan 28, 2021
@rachelkang
Copy link
Contributor

Hi, @ivanv-microsoft - thanks for sharing! I was able to reproduce this on UWP on XF 4.8 and up, when a grid background color is set (in your case it appears gray when the background is black). This is not an issue when the grid background is white, and/or on versions of XF 4.7 and below.

Issue13573.zip

@rachelkang rachelkang added 4.8.0 regression on 4.8.0 e/3 🕒 3 and removed s/unverified New report that has yet to be verified labels Feb 4, 2021
@rachelkang rachelkang moved this from New to Ready For Work in Triage Feb 4, 2021
@ivanv-microsoft
Copy link
Author

That's great, thanks Rachel, hopefully it gets fixed (soon).
Any workarounds you could see when debugging/going through the flow?

Changing background color on the parent grid to white isn't an option, as the entire app theme is "black (& green)".

@jsuarezruiz jsuarezruiz added the in-progress This issue has an associated pull request that may resolve it! label Feb 11, 2021
@jsuarezruiz jsuarezruiz self-assigned this Feb 11, 2021
@jsuarezruiz
Copy link
Contributor

@ivanv-microsoft The issue will be fixed by #13728

@RobbiewOnline
Copy link

I'm seeing this too on UWP, in my case the grid background color is explicitly set to white, but when the editor is focused the background colour is dark-gray and the text is black, making it very hard to read. Again, if un-focused the editor renders correctly.

Triage automation moved this from Ready For Work to Closed Nov 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
4.8.0 regression on 4.8.0 a/editor e/3 🕒 3 in-progress This issue has an associated pull request that may resolve it! p/UWP t/bug 🐛
Projects
Triage
  
Closed
Development

Successfully merging a pull request may close this issue.

4 participants