Skip to content

Commit f3ea737

Browse files
committed
#421: Setting Empty Border Radius on Tab Item Errors and Breaks Tab Item Content
- Removing Border Radius Properties from `ko-style` in Preview Template
1 parent 6fec98a commit f3ea737

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/PageBuilder/view/adminhtml/web/template/content-type/tab-item/default

1 file changed

+1
-1
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/template/content-type/tab-item/default/preview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
-->
77

8-
<div class="pagebuilder-content-type type-container pagebuilder-tab-item" attr="Object.assign({}, {id: contentType.id}, data.main.attributes())" ko-style="Object.assign({}, data.main.style(), {borderRadius: data.main.style().borderRadius || $parent.contentType.preview.data.headers.style().borderRadius})" css="Object.assign({'empty-container': contentType.children().length == 0}, data.main.css())">
8+
<div class="pagebuilder-content-type type-container pagebuilder-tab-item" attr="Object.assign({}, {id: contentType.id}, data.main.attributes())" ko-style="data.main.style" css="Object.assign({'empty-container': contentType.children().length == 0}, data.main.css())">
99
<div class="element-children content-type-container" each="contentType.getChildren()" ko-style="data.container.style" css="getChildrenCss()" attr="{id: contentType.id + '-children'}" data-bind="sortable: getSortableOptions()" afterRender="function (element) { if (typeof afterChildrenRender === 'function') { afterChildrenRender(element); } }">
1010
<if args="$parent.isContainer()">
1111
<div class="pagebuilder-drop-indicator"></div>

0 commit comments

Comments
 (0)