diff --git a/src/Icons.js b/src/Icons.js
new file mode 100644
index 0000000..bee9ec7
--- /dev/null
+++ b/src/Icons.js
@@ -0,0 +1,26 @@
+import React from 'react';
+
+/**
+ * Icons from IcoFont https://icofont.com/, licensed under the CC BY 4.0 license.
+ */
+export const ChevronDown = props => {
+ return (
+
+ )
+}
+
+export const Close = props => {
+ return (
+
+ )
+}
\ No newline at end of file
diff --git a/src/editor/widgets/comment/Comment.jsx b/src/editor/widgets/comment/Comment.jsx
index 5fbb8f4..c3879c9 100644
--- a/src/editor/widgets/comment/Comment.jsx
+++ b/src/editor/widgets/comment/Comment.jsx
@@ -1,6 +1,7 @@
import React, { useState } from 'react';
import DropdownMenu from './DropdownMenu';
import TextEntryField from './TextEntryField';
+import { ChevronDown } from '../../../Icons';
/** A single comment inside the CommentWidget **/
const Comment = props => {
@@ -37,7 +38,9 @@ const Comment = props => {
setIsMenuVisible(!isMenuVisible)} />
+ onClick={() => setIsMenuVisible(!isMenuVisible)}>
+
+
{ isMenuVisible &&
{
@@ -40,7 +41,7 @@ const TagWidget = props => {
- {'\uf014'}
+
diff --git a/themes/default/editor/widgets/comment/_comment.scss b/themes/default/editor/widgets/comment/_comment.scss
index c2e4739..74771f9 100644
--- a/themes/default/editor/widgets/comment/_comment.scss
+++ b/themes/default/editor/widgets/comment/_comment.scss
@@ -6,27 +6,19 @@
.arrow-down {
position:absolute;
- top:5px;
- right:5px;
height: 20px;
width: 20px;
- line-height: 14px;
- font-size: 18px;
- background-color:#fff;
- text-align: center;
- text-rendering: auto;
- -webkit-font-smoothing: antialiased;
- border: 1px solid $lightgrey-border;
top: 9px;
right: 9px;
+ line-height: 24px;
+ background-color:#fff;
+ text-align: center;
+ -webkit-font-smoothing: antialiased;
+ border: 1px solid $lightgrey-border;
cursor: pointer;
@include rounded-corners(1px);
}
- .arrow-down::before {
- content:'\2304';
- }
-
.arrow-down.menu-open {
border-color:$ocean;
}
diff --git a/themes/default/editor/widgets/tag/_tag.scss b/themes/default/editor/widgets/tag/_tag.scss
index 62b2053..5df6875 100644
--- a/themes/default/editor/widgets/tag/_tag.scss
+++ b/themes/default/editor/widgets/tag/_tag.scss
@@ -28,6 +28,7 @@
.label {
padding:2px 8px;
display:inline-block;
+ vertical-align:middle;
}
.delete-wrapper {
@@ -37,7 +38,7 @@
width:0;
height:100%;
background-color:$ocean;
- vertical-align:top;
+ @include rounded-corners-right(2px);
.delete {
padding:2px 6px;
@@ -49,6 +50,10 @@
}
+ svg {
+ vertical-align:middle;
+ }
+
}
.delete-enter-active {