From 32801e505019ff3d455681cffbe314a46476bd22 Mon Sep 17 00:00:00 2001 From: Boris Serebrov Date: Sun, 4 Jun 2023 13:14:09 -0400 Subject: [PATCH] Extract SelectedEmoji component, add unselect button to it. --- css/emoji-mart.css | 4 +++ docs/app.vue | 12 -------- src/components/Picker.vue | 15 ++++++---- src/components/selectedEmoji.vue | 51 ++++++++++++++++++++++++++++++++ 4 files changed, 64 insertions(+), 18 deletions(-) create mode 100644 src/components/selectedEmoji.vue diff --git a/css/emoji-mart.css b/css/emoji-mart.css index 2eb26f4..7896e6f 100644 --- a/css/emoji-mart.css +++ b/css/emoji-mart.css @@ -468,3 +468,7 @@ display: none; visibility: hidden; } +.emoji-delete { + vertical-align: top; + margin-left: -12px; +} diff --git a/docs/app.vue b/docs/app.vue index 21ec4ec..ea48789 100644 --- a/docs/app.vue +++ b/docs/app.vue @@ -77,14 +77,6 @@ :size="32" /> -
diff --git a/src/components/Picker.vue b/src/components/Picker.vue index 93e15b5..b56ab08 100644 --- a/src/components/Picker.vue +++ b/src/components/Picker.vue @@ -47,12 +47,13 @@ role="listbox" aria-expanded="true" > - diff --git a/src/components/selectedEmoji.vue b/src/components/selectedEmoji.vue new file mode 100644 index 0000000..42b203d --- /dev/null +++ b/src/components/selectedEmoji.vue @@ -0,0 +1,51 @@ + + +