I was looking for my problem and found this
However, the decision made does not work for me, but I canβt comment, since I have only 6 Reputations -.-
So, the Situation, I want to use a paper-item from the Polymer frame inside the paper list. It works, but when you select an item by clicking on it, the background changes to gray ... Documents and the answer to the question that I connected with abvoe, suggest overwriting - mix-item-selected / -paper-item-focus mixin, but this does not work for me.
My code is:
<link rel="import" href="../../../external/Polymer/bower_components/polymer/polymer.html"> <dom-module id="cit-literal-item"> <template> <style is="custom-style"> .spacer { @apply(--layout-flex); } paper-item { --paper-item-selected: { background-color: #FFFFFF; }; --paper-item-focused: { background-color: #FFFFFF; }; } </style> <paper-item>Test</paper-item> </template> </dom-module>
Code of the main document:
... <link rel="import" href="lib/internal/dom-modules/literals/cit-literal-item.html"> ... <body> <paper-listbox> <cit-literal-item></cit-literal-item> <cit-literal-item></cit-literal-item> </paper-listbox> </body>
source share