Skip to content

Commit b7b9687

Browse files
committed
use iron-demo-helpers
1 parent 6acdc8e commit b7b9687

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

bower.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
},
2626
"devDependencies": {
2727
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
28-
"web-component-tester": "*"
28+
"web-component-tester": "*",
29+
"iron-demo-helpers": "PolymerElements/iron-demo-helpers#~1.0.3"
2930
}
3031
}

demo/index.html

+17-7
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,28 @@
1414
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
1515
<title>paper-input-image Demo</title>
1616
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
17+
<link rel="import" href="../../iron-demo-helpers/demo-snippet.html">
18+
<link rel="import" href="../../iron-demo-helpers/demo-pages-shared-styles.html">
19+
1720
<link rel="import" href="../paper-input-image.html">
1821
</head>
1922
<body unresolved>
2023

21-
<style>
22-
paper-input-image {
23-
width: 300px;
24-
height: 300px;
25-
}
24+
<style is="custom-style" include="demo-pages-shared-styles">
2625
</style>
27-
28-
<paper-input-image></paper-input-image>
2926

27+
<div class="vertical-section-container centered">
28+
<demo-snippet class="centered-demo">
29+
<template>
30+
<style>
31+
paper-input-image {
32+
width: 300px;
33+
height: 300px;
34+
}
35+
</style>
36+
<paper-input-image></paper-input-image>
37+
</template>
38+
</demo-snippet>
39+
</div>
3040
</body>
3141
</html>

0 commit comments

Comments
 (0)