From 7addcf32f830929035ee828e2d97f443936159f2 Mon Sep 17 00:00:00 2001
From: Sara Bianchi <43245702+SaraBianchi@users.noreply.github.com>
Date: Thu, 25 Jul 2024 09:13:57 +0200
Subject: [PATCH] fix: fixed list style format in sidebar context and TextSize
icon (#729)
---
.../ToolbarButtons/TextSizeButton.jsx | 28 ++++++-------------
theme/_cms-ui.scss | 8 ++++++
2 files changed, 17 insertions(+), 19 deletions(-)
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;
}