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
215 stars 80 forks source link

[Material Slider] Overriding theme's colors #402

Open guillemc23 opened 1 year ago

guillemc23 commented 1 year ago

Make sure to check the demo app(s) for sample usage

Make sure to check the existing issues in this repository

If the demo apps cannot help and there is no issue for your problem, tell us about it

Please, ensure your title is less than 63 characters long and starts with a capital letter.

Which platform(s) does your issue occur on?

Please, provide the following version numbers that your issue occurs with:

Please, tell us how to recreate the issue in as much detail as possible.

I have recently updated to NS 8.3 and my colors are now being overriden by the theme I'm using (@nativescript/theme/core) instead of picking up the Primary color from my colors.xml file . Trying to change the colors inline as in the code below only changes the thumb's color:

<MDSlider  value="5" class="slider" minValue="0" maxValue="10"
       (valueChange)="onSliderValueChange($event)" verticalAlignment="center" stepSize="1"
       backgroundColor="white" trackFillColor="#77567a" thumbColor="#77567a"
       trackBackgroundColor="#9F88A1"></MDSlider>
farfromrefug commented 1 year ago

@guillemc23 hard to tell. Seems like a css issue. Can you reproduce it in an simple example project? (not angular please).