聚合物: - paper-item-selected-weight not working

时间:2016-08-29 08:39:43

标签: css polymer polymer-1.0

我想应用背景颜色,但在选中时不应加粗paper-item。我注意到重量属性没有做任何事......

paper-item {    
  --paper-item-selected-weight: normal; /* its still bold */ 

  --paper-item-selected: {
    background: #3f9c35; /* no issues here */
  }
}

HTML

<paper-menu selected="0">
  <paper-item>TEST</paper-item>

如果我使用paper-icon-item

,也会发生同样的情况

0 个答案:

没有答案