Skip to content

Commit 544300b

Browse files
committed
MC-4965: Text Wrapping Inside Inline WYSIWYG Editors Will Break On Words (Storefront as well for Slide & Banner)
- fix for heading in block - fix for button items in block
1 parent 6c25707 commit 544300b

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/css/source/content-type/button-item/_default.less

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,17 @@
100100
height: ~'calc(100% - 10px)';
101101
width: ~'calc(100% - 10px)';
102102
}
103+
104+
//
105+
// Styles rendered through Blocks
106+
// ______________________________
107+
108+
[data-role='button-item'] {
109+
max-width: 100%;
110+
overflow-wrap: break-word;
111+
word-wrap: break-word;
112+
113+
[data-element='link'] {
114+
max-width: 100%;
115+
}
116+
}

app/code/Magento/PageBuilder/view/adminhtml/web/css/source/content-type/heading/_default.less

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,12 @@
6464
margin-top: 2rem;
6565
}
6666
}
67+
68+
//
69+
// Styles rendered through Blocks
70+
// ______________________________
71+
72+
[data-role='heading'] {
73+
overflow-wrap: break-word;
74+
word-wrap: break-word;
75+
}

0 commit comments

Comments
 (0)