nativescript-community / ui-material-components

Monorepo that contains all of the NativeScript Material Design plugins.
https://nativescript-community.github.io/ui-material-components/
Apache License 2.0
219 stars 80 forks source link

fix(android): TabStrip style for the unselected item is not working #433

Closed dgmachado closed 1 year ago

dgmachado commented 1 year ago

TabStrip style for the unselected item is not working.

Example CSS file:

MDTabStrip {
  background-color: #79d2a6;
  selected-item-color: red;
  un-selected-item-color: yellow;
  highlight-color: red;
}

TabStripClassStyle MDTabStripItem {
  background-color: #79d2a6;
}

Before bugfix: https://user-images.githubusercontent.com/5738416/219018760-5b8756a3-85e1-4f3b-80cb-fb21084a0c8f.mp4

After bugfix: https://user-images.githubusercontent.com/5738416/219018836-c5ee6a6a-a258-4b95-98b0-dc6f3acde74c.mp4

Resolution: The mUnSelectedItemColor filled up on the CSS file should have greater priority than the default color.

farfromrefug commented 1 year ago

@dgmachado thanks!

dyazincahya commented 6 months ago

@dgmachado thank you