-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathemojione-emoji.html
44 lines (38 loc) · 1.09 KB
/
emojione-emoji.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
39
40
41
42
43
44
<link rel="import" href="../paper-behaviors/paper-inky-focus-behavior.html">
<dom-module id="emojione-emoji">
<template strip-whitespace>
<style is="custom-style">
:host {
position: relative;
outline: none;
height: 48px;
width: 48px;
padding: 8px;
box-sizing: border-box;
border-radius: 3px;
cursor: pointer;
@apply --emojione-emoji-container;
}
paper-ripple {
color: var(--paper-grey-400);
@apply --emojione-emoji-ripple;
}
</style>
<slot></slot>
</template>
<script>
Polymer({
is: 'emojione-emoji',
behaviors: [Polymer.PaperInkyFocusBehavior],
/**
* @override the createRipple function in paper ripple
* https://github.com/PolymerElements/paper-behaviors/blob/master/paper-inky-focus-behavior.html
*/
_createRipple: function () {
const ripple = Polymer.PaperRippleBehavior._createRipple();
ripple.id = 'ink';
return ripple;
}
});
</script>
</dom-module>