I have an element, let's call it x-foo. Inside x-fooI use <paper-tabs>.
x-foo
<paper-tabs>
How to change ripple color <paper-tabs>from (default) yellowtowhite ?
yellow
white
Below is the documentation that I completed to change the color of the stroke . The problem is that the documentation of the elements at the bottom of this page does not explain or disclose the ripple color in the same way.
Here is what I still work. And what I tried does not work.
:host { --paper-tabs-selection-bar-color: var(--default-primary-color); /* Works */ --paper-ripple-color: white; /* Does not work */ }
- element, , :) css var "". var --paper-tab-ink css var
css var
--paper-tab-ink
polymer polymer1.0 paper-tabs
.
<style> :host { --paper-tab-ink: var(--accent-color); } paper-tabs { --paper-tabs-selection-bar-color: var(--accent-color); } </style>
/deep/ DOM #ink, .
: https://jsbin.com/jiqebamire/edit?html,output
Source: https://habr.com/ru/post/1608404/More articles:Julia: find a row in a matrix - matrixHow can I implement $ http in Typescript? - angularjsHow to make helper helper global (in expressjs) - javascriptะ ะตะณะธััั ัััะตะบHelper-ัะตัะฒะตั ั Expressjs - node.jsWrapping all methods / properties on an embedded object - javascriptlocal variables referenced by the inner class must be final or actually final - javaCan't inherit from a context object? - javascriptThe superclass constructor call must be in the constructor body - ecmascript-6Insert an integer into a sorted array - javaWhat is the adb command to display all browsers installed on an Android device? - javaAll Articles