你好,我有一个应用程序,我想使用纸图标按钮,我使用的主题黑暗主题,问题是,我无法使纸图标按钮显示图标。
进口:
<link rel="import" href="../bower_components/iron-iconset-svg/iron-iconset-svg.html">
<link rel="import" href="../bower_components/iron-iconset/iron-iconset.html">
<link rel="import" href="../bower_components/iron-icons/iron-icons.html">
<link rel="import" href="../bower_components/iron-icons/editor-icons.html">
<link rel="import" href="../bower_components/iron-icons/communication-icons.html">
<link rel="import" href="../bower_components/iron-icons/notification-icons.html">
<link rel="import" href="../bower_components/iron-icons/maps-icons.html">
<link rel="import" href="../bower_components/iron-icons/social-icons.html">
<link rel="import" href="../bower_components/iron-icon/iron-icon.html">
<!-- Paper elements -->
<link rel="import" href="../bower_components/paper-icon-button/paper-icon-button.html">要素:
<dom-module id="my-adminwork">
<template>
<style>
:host {
display: block;
},
</style>
<iron-localstorage name="my-signasafe-storage" id="localStorage_id" value="{{sessionObject}}"></iron-localstorage>
<span>Text example</span>
<paper-icon-button icon="refresh"></paper-icon-button>
</template>纸图标按钮应该是一个铁图标元素的复合,里面有svg图标,当我在浏览器中签入html时,我没有在铁图标元素中看到svg图标代码。
知道为什么会发生这种事吗?
发布于 2016-06-28 22:59:01
问题是你有"icons",它和聚合物的默认图标集的名字是一样的。这将导致图标查找在my-icons.html中搜索自定义图标集,以查找实际上属于iron-icons.html中默认图标集的图标。
若要解决此问题,请更改自定义图标集的名称(例如,更改为“my-图标”)。
https://stackoverflow.com/questions/38084662
复制相似问题