Merge pull request #4946 from jjaffeux/emoji-picker-fixes

Emoji picker fixes
This commit is contained in:
Régis Hanol 2017-06-29 00:30:55 +02:00 committed by GitHub
commit e12601b850
3 changed files with 6 additions and 5 deletions

View File

@ -168,9 +168,9 @@ function render(page, offset, options) {
}
const model = {
toolbarItems: toolbarItems,
skinTones: skinTones,
rows: rows,
toolbarItems,
skinTones,
rows,
prevDisabled: offset === 0,
nextDisabled: (max + 1) > icons.length,
modalClass: options.modalClass

View File

@ -18,9 +18,9 @@
<div class='info'></div>
<div class='tones'>
{{#each skinTones as |skinTone|}}
<button class='tones-button {{skinTone.className}}' data-skin-tone="{{skinTone.level}}">
<a href='#' class='tones-button {{skinTone.className}}' data-skin-tone="{{skinTone.level}}">
{{#if skinTone.selected}}{{fa-icon "check"}}{{/if}}
</button>
</a>
{{/each}}
</div>
<div class='nav'>

View File

@ -131,6 +131,7 @@ table.emoji-page td {
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
.emoji-modal .tones-button.default { background: #ffcc4d; }
.emoji-modal .tones-button.light { background: #f7dece; }