From 37551c6a4b388f646ffffe4c657ca9bac8c2e539 Mon Sep 17 00:00:00 2001 From: Sandy McFadden Date: Tue, 4 May 2021 10:22:24 -0300 Subject: [PATCH] Add tooltip to restore deleted tags to make action more clear Add new help icon Update to new help icon Fix positioning of the help icon Fix background color of tooltips Update the copy for the added tooltip --- lib/icons/help-small.tsx | 14 ++++++++++++++ lib/revision-selector/index.tsx | 8 ++++++++ lib/revision-selector/style.scss | 9 +++++++++ scss/_general.scss | 4 ++++ 4 files changed, 35 insertions(+) create mode 100644 lib/icons/help-small.tsx diff --git a/lib/icons/help-small.tsx b/lib/icons/help-small.tsx new file mode 100644 index 000000000..6b5d41942 --- /dev/null +++ b/lib/icons/help-small.tsx @@ -0,0 +1,14 @@ +import React from 'react'; + +export default function SmallHelpIcon() { + return ( + + + + + ); +} diff --git a/lib/revision-selector/index.tsx b/lib/revision-selector/index.tsx index 3825a3d0b..dd41dfad3 100644 --- a/lib/revision-selector/index.tsx +++ b/lib/revision-selector/index.tsx @@ -3,6 +3,8 @@ import { connect } from 'react-redux'; import FocusTrap from 'focus-trap-react'; import format from 'date-fns/format'; import classNames from 'classnames'; +import IconButton from '../icon-button'; +import SmallHelpIcon from '../icons/help-small'; import Slider from '../components/slider'; import CheckboxControl from '../controls/checkbox'; import actions from '../state/actions'; @@ -162,6 +164,12 @@ export class RevisionSelector extends Component { Restore deleted tags + + } + title="Any deleted tags associated with the restored version of this note will be re-added to your list of tags." + /> +