-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved visual test to its own file. Update screenshots
- Loading branch information
Showing
7 changed files
with
72 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1" /> | ||
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script> | ||
|
||
<style> | ||
body { | ||
font-family: sans-serif; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<link rel="import" href="../../polymer/polymer.html"> | ||
<link rel="import" href="../../vaadin-icons.html"> | ||
<link rel="import" href="../../../iron-meta/iron-meta.html"> | ||
<link rel="import" href="../../../vaadin-text-field/vaadin-text-field.html"> | ||
|
||
|
||
<dom-bind id="binder"> | ||
<template> | ||
<style> | ||
.iconset-container { | ||
width: 800px; | ||
font-size: 10px; | ||
} | ||
.icon-container { | ||
display: inline-flex; | ||
flex-direction: column; | ||
width: 110px; | ||
align-items: center; | ||
margin-top: 6px; | ||
} | ||
span { | ||
white-space: nowrap; | ||
overflow: hidden; | ||
} | ||
</style> | ||
<div class="iconset-container"> | ||
<dom-repeat items="[[iconsets]]"> | ||
<template> | ||
<dom-repeat id="wrapper" items="[[getIconNames(item)]]"> | ||
<template is="dom-repeat" > | ||
<div class="icon-container"> | ||
<iron-icon icon="[[item]]"></iron-icon> | ||
<span>[[item]]</span> | ||
</div> | ||
</template> | ||
</dom-repeat> | ||
</template> | ||
</dom-repeat> | ||
</div> | ||
</template> | ||
</dom-bind> | ||
|
||
<script> | ||
window.addEventListener('WebComponentsReady', function() { | ||
const binder = document.getElementById('binder'); | ||
binder.getIconNames = function(iconset) { | ||
return iconset.getIconNames(); | ||
} | ||
binder.iconsets = new Polymer.IronMeta({type: 'iconset'}).list.filter(i => i.name == 'vaadin'); | ||
window.webComponentsAreReady = true; | ||
}); | ||
</script> | ||
|
||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters