From ab0d94aea2dc98027e7d3bd5f22c4a3e23dbdfb0 Mon Sep 17 00:00:00 2001 From: Pavel Dohnal Date: Tue, 13 Nov 2018 12:10:04 +0100 Subject: [PATCH] Remove font tooltip [MAILPOET-1623] --- assets/css/src/newsletter_editor/common.styl | 6 +----- assets/js/src/newsletter_editor/components/sidebar.js | 5 ----- views/newsletter/editor.html | 1 - views/newsletter/templates/components/sidebar/styles.hbs | 3 +-- 4 files changed, 2 insertions(+), 13 deletions(-) diff --git a/assets/css/src/newsletter_editor/common.styl b/assets/css/src/newsletter_editor/common.styl index f29cc05b8d..280528930a 100644 --- a/assets/css/src/newsletter_editor/common.styl +++ b/assets/css/src/newsletter_editor/common.styl @@ -192,10 +192,6 @@ select.mailpoet_font-size margin-left: 5px font-weight: normal -.tooltip-help-designer-styles - position: absolute - top: 40px - .tooltip-help-designer-full-width .dashicons line-height 34px .tooltip-help-designer-full-width span @@ -242,7 +238,7 @@ input.mailpoet_option_offset_left_small span.select2-container--open > span.select2-dropdown width: 150px !important - + span.select2-container--open > span.select2-dropdown li.select2-results__option font-size: 13px margin: 0px !important diff --git a/assets/js/src/newsletter_editor/components/sidebar.js b/assets/js/src/newsletter_editor/components/sidebar.js index 56b62c3095..484ec7438d 100644 --- a/assets/js/src/newsletter_editor/components/sidebar.js +++ b/assets/js/src/newsletter_editor/components/sidebar.js @@ -378,11 +378,6 @@ define([ tooltipId: 'tooltip-editor-send-preview', tooltip: MailPoet.I18n.t('helpTooltipSendPreview') }); - - MailPoet.helpTooltip.show(document.getElementById('tooltip-designer-styles'), { - tooltipId: 'tooltip-editor-designer-styles', - tooltip: MailPoet.I18n.t('helpTooltipDesignerStyles') - }); }); return Module; diff --git a/views/newsletter/editor.html b/views/newsletter/editor.html index 3b3bc042fa..e4aa674d17 100644 --- a/views/newsletter/editor.html +++ b/views/newsletter/editor.html @@ -350,7 +350,6 @@ 'newsletterPreviewSent': __('Your test email has been sent!'), 'templateNameMissing': __('Please add a template name'), 'helpTooltipSendPreview': helpTooltipSendPreview, - 'helpTooltipDesignerStyles': __('We only include fonts that will display in all email clients. We understand it can feel limiting!'), 'helpTooltipDesignerSubjectLine': __("You can add MailPoet shortcodes here. For example, you can add your subscribers' first names by using this shortcode: [subscriber:firstname | default:reader]. Simply copy and paste the shortcode into the field."), 'helpTooltipDesignerPreheader': __("This optional text will appear in your subscribers' inboxes, beside the subject line. Write something enticing!"), 'helpTooltipDesignerFullWidth': __("This option eliminates padding around the image. It only works if the image is larger than the column size."), diff --git a/views/newsletter/templates/components/sidebar/styles.hbs b/views/newsletter/templates/components/sidebar/styles.hbs index 6634367b6f..000e10211c 100644 --- a/views/newsletter/templates/components/sidebar/styles.hbs +++ b/views/newsletter/templates/components/sidebar/styles.hbs @@ -1,7 +1,6 @@

<%= __('Styles') %>

-
@@ -112,4 +111,4 @@
\ No newline at end of file +