AAE-20506 Rich Text Editor Visual Improvements (#10385)

* [AAE-20506] replace icon with material design icon

* [AAE-20506] fix size and position of 'change color' plugin's icon

* [AAE-20506]  make sure material design's container does not define text color
This commit is contained in:
Jonas Wollweber 2024-11-25 09:51:24 +01:00 committed by GitHub
parent afc5830c31
commit 60da8634f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 2 deletions

View File

@ -86,7 +86,8 @@ export const editorJsConfig = {
'Increase/Decrease font size': {
class: ChangeFontSize,
config: {
cssClass: 'plus20pc'
cssClass: 'plus20pc',
buttonIcon: '<span class="material-icons">format_size</span>'
}
},
inlineCode: {

View File

@ -1,5 +1,7 @@
/* stylelint-disable selector-class-pattern */
.adf-rich-text-editor-container {
color: var(--theme-text-fg-color, rgba(0, 0, 0, 0.87));
.editorjs {
&.readonly {
.codex-editor__redactor {
@ -11,11 +13,20 @@
.ce-inline-toolbar {
transform: scale(1);
.ce-popover__items {
overflow: hidden;
}
.ce-inline-tool .material-icons {
font-size: 20px;
}
}
}
xy-color-picker {
position: relative;
background-color: transparent;
width: 22px;
margin: 0;
overflow: hidden;
}