polymer paper-menu-button change the default size of icon

眉间皱痕 提交于 2019-12-10 12:15:01

问题


Is there way to set the size of polymer paper-menu-button element. I think it is the icon size is set to 24px. I wish to have it as 20px but I cannot find a way to do it.

Thanks Dennis


回答1:


I tried it and it worked. Add this style to the Polymer element containing your <paper-menu-button> element.

  paper-menu-button /deep/ core-icon[role=img] {
    height: 20px;
    width: 20px;
  }

I added [role=img] to increase the selectivity.



来源:https://stackoverflow.com/questions/25352296/polymer-paper-menu-button-change-the-default-size-of-icon

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!