I have an element, let's call it x-foo
. Inside x-foo
, I am using <paper-tabs>
.
How do I change the
<paper-tabs>
ripple color from (the default)yellow
towhite
?
Here is the documentation I followed to change the bar color. The problem is that the element documentation at the bottom of this page does not explain or expose the ripple color in the same way.
Here is what I have working so far. And what I tried that is not working.
:host {
--paper-tabs-selection-bar-color: var(--default-primary-color); /* Works */
--paper-ripple-color: white; /* Does not work */
}
Here is what worked for me.
<style>
:host {
--paper-tab-ink: var(--accent-color);
}
paper-tabs {
--paper-tabs-selection-bar-color: var(--accent-color);
}
</style>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With