Skip to content

Commit 354ba40

Browse files
committed
MC-3870: Background does not conform to border radius for banner, image, contained row & video
Apply inheritance of border-radius styles within content type scopes
1 parent 9a9a039 commit 354ba40

File tree

6 files changed

+17
-0
lines changed

6 files changed

+17
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,7 @@
8888
cursor: default;
8989
}
9090
}
91+
92+
.pagebuilder-banner-wrapper {
93+
border-radius: inherit;
94+
}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,9 @@
3232
padding: 15px 0;
3333
word-wrap: break-word;
3434
}
35+
36+
.preview-image {
37+
border-radius: inherit;
38+
}
3539
}
3640
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
flex-grow: 1;
3030
}
3131
.pagebuilder-video-container {
32+
border-radius: inherit;
33+
overflow: hidden;
3234
padding-top: 56.25%;
3335
position: relative;
3436
}

app/code/Magento/PageBuilder/view/frontend/web/css/source/content-type/banner/_default.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
}
2525

2626
.pagebuilder-banner-wrapper {
27+
border-radius: inherit;
2728
box-sizing: border-box;
2829
word-break: break-all;
2930

app/code/Magento/PageBuilder/view/frontend/web/css/source/content-type/image/_default.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ figure[data-role='image'] {
1111
box-sizing: border-box;
1212
width: 100%;
1313

14+
> [data-element='link'] {
15+
border-radius: inherit;
16+
}
17+
1418
figcaption {
1519
word-wrap: break-word;
1620
}

app/code/Magento/PageBuilder/view/frontend/web/css/source/content-type/video/_default.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ div[data-role='video'] {
1717
height: 100%;
1818
}
1919
.pagebuilder-video-container {
20+
border-radius: inherit;
21+
overflow: hidden;
2022
padding-top: 56.25%;
2123
position: relative;
2224
}

0 commit comments

Comments
 (0)