diff --git a/src/config/RichTextEditor/ToolbarButtons/TextSizeButton.jsx b/src/config/RichTextEditor/ToolbarButtons/TextSizeButton.jsx index e949faafd..86a903f20 100644 --- a/src/config/RichTextEditor/ToolbarButtons/TextSizeButton.jsx +++ b/src/config/RichTextEditor/ToolbarButtons/TextSizeButton.jsx @@ -1,17 +1,17 @@ import React from 'react'; -import { defineMessages, useIntl } from 'react-intl'; +// import { defineMessages, useIntl } from 'react-intl'; import Icon from '@plone/volto/components/theme/Icon/Icon'; // import DraftJsDropdownButton from 'design-comuni-plone-theme/config/RichTextEditor/ToolbarButtons/DraftJsDropdownButton'; import formatSVG from '@plone/volto/icons/format.svg'; -const messages = defineMessages({ - TextSizeButton: { - id: 'text-size-button', - defaultMessage: 'Dimensione del testo', - }, -}); +// const messages = defineMessages({ +// TextSizeButton: { +// id: 'text-size-button', +// defaultMessage: 'Dimensione del testo', +// }, +// }); /* const TextSizeButton = (props) => { @@ -44,22 +44,12 @@ const TextSizeButton = (props) => { }; */ -const ButtonIcon = (props) => { - const intl = useIntl(); - return ( - - ); -}; - const TextSizeButton = (props) => { const createInlineStyleButton = props.draftJsCreateInlineStyleButton.default; + return createInlineStyleButton({ style: 'TEXT_LARGER', - children: ButtonIcon, + children: , }); }; export default TextSizeButton; diff --git a/theme/_cms-ui.scss b/theme/_cms-ui.scss index 800ee2865..8d7084ae9 100644 --- a/theme/_cms-ui.scss +++ b/theme/_cms-ui.scss @@ -393,6 +393,14 @@ body.cms-ui { } } + // Sidebar - campi editabili con draftJs + // - liste + #sidebar .sidebar-container .ui.form ul.public-DraftStyleDefault-ul { + li.public-DraftStyleDefault-unorderedListItem { + display: list-item; + } + } + [data-rbd-draggable-context-id] { margin-bottom: 1rem; }