Uno.Themes icon indicating copy to clipboard operation
Uno.Themes copied to clipboard

MaterialCheckBoxStyle foreground color cannot be changed

Open arianeleonard opened this issue 2 years ago • 0 comments

Current behavior

The content color of a checkbox using MaterialCheckBoxStyle cannot be changed. The foreground is set to a color instead of using TemplateBinding. (https://github.com/unoplatform/Uno.Themes/blob/master/src/library/Uno.Material/Styles/Controls/v1/CheckBox.xaml)

Expected behavior

When using MaterialCheckBoxStyle to style a checkbox, it should be possible to set the foreground of the checkbox (which means the text and the checkbox border) to any color.

How to reproduce it (as minimally and precisely as possible)

  1. Launch repro sample UnoApplicationTemplate.zip
  2. On the login page, press on the "create account" button
  3. On the create account page, scroll to the bottom and select "create account"
  4. Notice that, just above the button, there is a blue checkbox with an error message around. It's foreground is set to white, but it still appears in blue.

Environment

Nuget Package:

Package Version(s):

Affected platform(s):

  • [x] iOS
  • [x] Android
  • [ ] WebAssembly
  • [x] UWP
  • [ ] MacOS

Anything else we need to know?

arianeleonard avatar Jun 29 '22 20:06 arianeleonard