Baseflow / Baseflow/XF-Material-Library

MaterialButton TextColor style position problem

Open
#420 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
C#
Stars
633
Forks
150
PR merge metrics
No merged PRs in 30d

Description

## 🐛 Bug Report

I don't know about other cases, but if I set "TextColor" property before "ButtonType" property in my style declaration - the text color is not applied.

### Expected behavior

The "TextColor" property has to be applied independently of the position in the style declaration.

### Reproduction steps

1. Create a simple ContentPage:
```xaml




<Setter Property="TextColor" Value="White" />
<Setter Property="ButtonType" Value="Outlined" />






```

2. Notice the text color is not white:

![image](https://user-images.githubusercontent.com/21317790/113507497-84563b00-9553-11eb-80ce-2b9843aa8961.png)

3. Swap "TextColor" and "ButtonType" properties and notice the color is applied now:
```xaml

<Setter Property="ButtonType" Value="Outlined" />
<Setter Property="TextColor" Value="White" />

```
![image](https://user-images.githubusercontent.com/21317790/113507522-bff10500-9553-11eb-8510-1bf7f8fa8502.png)

### Configuration

**Version:** 1.7.8

**Platform:**
- [ ] :iphone: iOS
- [x] :robot: Android
- [ ] :checkered_flag: WPF
- [ ] :earth_americas: UWP
- [ ] :apple: MacOS
- [ ] :tv: tvOS
- [x] :monkey: Xamarin.Forms

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.