-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
38 lines (34 loc) · 1.08 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<title><wdpr-wc-polymer-textbox></title>
<!-- Imports polyfill -->
<script src="../webcomponentsjs/webcomponents.js"></script>
<!-- To enable Native Shadow DOM, set polymer.dom ='shadow' -->
<script>
window.Polymer = {
dom: 'shadow',
lazyRegister: true
};
</script>
<!-- Imports custom element -->
<link rel="import" href="wc-polymer-textbox.html">
<!-- Overriding theme using Custom CSS mixins & custom-style to style shadow DOM -->
<style is="custom-style">
:root {
--wc-polymer-textbox: {
border: 1px solid green;
}
}
</style>
</head>
<body>
<h2>Custom Input Text element as an extension of a native Input Text element.</h2>
<!-- Runs custom element -->
<input type="text" is="wc-polymer-textbox" placeholder=" First Name*" >
<!-- Runs custom element -->
<br><br>
</body>
</html>