Commit 9e0c19f1 authored by Lyza Danger Gardner's avatar Lyza Danger Gardner

Update `highlight` icon to use SVG

parent 847ad126
...@@ -4,6 +4,7 @@ const { createElement } = require('preact'); ...@@ -4,6 +4,7 @@ const { createElement } = require('preact');
const AnnotationDocumentInfo = require('./annotation-document-info'); const AnnotationDocumentInfo = require('./annotation-document-info');
const AnnotationShareInfo = require('./annotation-share-info'); const AnnotationShareInfo = require('./annotation-share-info');
const AnnotationUser = require('./annotation-user'); const AnnotationUser = require('./annotation-user');
const SvgIcon = require('./svg-icon');
const Timestamp = require('./timestamp'); const Timestamp = require('./timestamp');
/** /**
...@@ -62,9 +63,11 @@ function AnnotationHeader({ ...@@ -62,9 +63,11 @@ function AnnotationHeader({
<AnnotationShareInfo annotation={annotation} isPrivate={isPrivate} /> <AnnotationShareInfo annotation={annotation} isPrivate={isPrivate} />
{!isEditing && isHighlight && ( {!isEditing && isHighlight && (
<div className="annotation-header__highlight"> <div className="annotation-header__highlight">
<i <SvgIcon
className="h-icon-border-color" name="highlight"
title="This is a highlight. Click 'edit' to add a note or tag." title="This is a highlight. Click 'edit' to add a note or tag."
inline={true}
className="annotation-header__highlight-icon"
/> />
</div> </div>
)} )}
......
...@@ -37,4 +37,11 @@ ...@@ -37,4 +37,11 @@
&__highlight { &__highlight {
margin-right: 5px; margin-right: 5px;
} }
&__highlight-icon {
width: 12px;
height: 12px;
/* bring down the baseline a little */
margin-bottom: -1px;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment