From 72175a223d1127fa4ed3e944d8b9873cb7285085 Mon Sep 17 00:00:00 2001 From: Andrei Draganescu Date: Thu, 8 Sep 2022 19:50:02 +0300 Subject: [PATCH] Adds an option to remove text decoration Co-authored-by: Dave Smith <444434+getdave@users.noreply.github.com> --- .../src/components/text-decoration-control/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/block-editor/src/components/text-decoration-control/index.js b/packages/block-editor/src/components/text-decoration-control/index.js index 05f92a8b8e0f66..e81f945f00ad95 100644 --- a/packages/block-editor/src/components/text-decoration-control/index.js +++ b/packages/block-editor/src/components/text-decoration-control/index.js @@ -10,10 +10,15 @@ import { __experimentalToggleGroupControl as ToggleGroupControl, __experimentalToggleGroupControlOptionIcon as ToggleGroupControlOptionIcon, } from '@wordpress/components'; -import { formatStrikethrough, formatUnderline } from '@wordpress/icons'; +import { formatStrikethrough, formatUnderline, reset } from '@wordpress/icons'; import { __ } from '@wordpress/i18n'; const TEXT_DECORATIONS = [ + { + name: __( 'None' ), + value: 'none', + icon: reset, + }, { name: __( 'Underline' ), value: 'underline',