Polymer 聚合物纸项目-Can';t为<;更改选定的灰色背景;纸张项目>;

Polymer 聚合物纸项目-Can';t为<;更改选定的灰色背景;纸张项目>;,polymer,Polymer,一旦在模板中使用,我似乎无法更改选定的灰色背景色。我能够调用mix-ins并在模板中未使用时更改选定的背景颜色。请帮忙 <autocomplete-suggestions id="filter-suggestions" for="filter-input" source="[[suggestionsSource]]" min-length="0" text-property="title"> <template autocomplete-custom-template&g

一旦在模板中使用,我似乎无法更改选定的灰色背景色。我能够调用mix-ins并在模板中未使用时更改选定的背景颜色。请帮忙

  <autocomplete-suggestions
id="filter-suggestions"
for="filter-input"
source="[[suggestionsSource]]"
min-length="0"
text-property="title">

<template autocomplete-custom-template>

  <paper-item class="suggestion" on-tap="_onSelect" id$="[[_getSuggestionId(index)]]">

  <style is="custom-style">
  :root {
    --paper-item: {
      font-weight: 300;
      font-family: 'Muli', Helvetica, Arial, 'Lucida Grande', sans-serif !important;
      -webkit-font-smoothing: initial;
      color:#3F5364;
    };
    --paper-item-focused: {
    background: white;
    };
    --paper-item-focused-before: {
    background: white;
    };
  }
  </style>

    <p class= "suggestion-type">
      [[item.title]]
    </p>
    <template is="dom-if" if="[[item.description]]" restamp="true">
      <small class="suggestion-value">
      [[item.description]]</small>
    </template>

  </paper-item>

</template>

:根{
--文件项目:{
字体大小:300;
字体系列:'Muli',Helvetica,Arial,'Lucida Grande',无衬线!重要;
-webkit字体平滑:初始;
颜色:#3F5364;
};
--文件项目重点:{
背景:白色;
};
--之前重点关注的文件项目:{
背景:白色;
};
}

[[项目名称]]

[[项目说明]]