Skip to content

Commit 29c0d9e

Browse files
committed
MC-3392: Hide Content block/ container from the stage
- Resolve further tab issues
1 parent 5dadba1 commit 29c0d9e

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,6 @@
129129
}
130130
}
131131

132-
// Keeps the options showing while the user clicks. Otherwise the focus is lost and the options hide.
133-
.pagebuilder-options:hover {
134-
.pagebuilder-options-visible;
135-
}
136-
137132
&.focused {
138133
a.tab-title .tab-drag-handle {
139134
opacity: 1;

app/code/Magento/PageBuilder/view/adminhtml/web/js/content-type/tabs/preview.js

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/content-type/tabs/preview.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default class Preview extends PreviewCollection {
5252
create: () => {
5353
// Ensure focus tab is restored after a rebuild cycle
5454
if (focusedTab) {
55-
this.setFocusedTab(focusedTab);
55+
this.setFocusedTab(focusedTab, true);
5656
}
5757
},
5858
});
@@ -382,7 +382,6 @@ export default class Preview extends PreviewCollection {
382382
duplicatedTab = args.duplicateContentType;
383383
duplicatedTabIndex = args.index;
384384
}
385-
this.buildTabs(args.index);
386385
});
387386
events.on("tab-item:mountAfter", (args: ContentTypeMountEventParamsInterface) => {
388387
if (duplicatedTab && args.id === duplicatedTab.id) {

0 commit comments

Comments
 (0)