Skip to content

Commit ffc5e1b

Browse files
author
Hwashiang Yu
committed
MC-4150: Widget placeholder and variable placeholder styling is broken on inline editing
- Resolved static failures
1 parent 415a26b commit ffc5e1b

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/css/source/_typography.less

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ body {
140140

141141
pre {
142142
background-color: @color-white-smoke;
143-
border: @pre__border-width solid #ccc;
143+
border: @pre__border-width solid @color-gray80;
144144
color: @color-black;
145145
font-family: @font-family__monospace;
146146
font-size: @code__font-size;
@@ -164,17 +164,17 @@ body {
164164
}
165165

166166
.magento-placeholder {
167-
background: #dff7ff;
167+
background: @placeholder-background;
168168
box-sizing: initial;
169-
color: #000;
169+
color: @color-black;
170170
cursor: pointer !important;
171171
display: inline-block;
172172
font-size: 14px;
173173
font-style: normal;
174174
font-weight: normal;
175175
height: 20px;
176176
margin: 0 5px;
177-
outline: 2px solid #c0dffa;
177+
outline: 2px solid @placeholder-outline;
178178
padding: 2px 4px;
179179
vertical-align: bottom;
180180
word-break: break-all;
@@ -184,7 +184,7 @@ body {
184184
display: inline-block;
185185
height: 20px;
186186
margin: 0 5px;
187-
outline: 2px solid #f7aaaa !important;
187+
outline: 2px solid @placeholder-error-outline !important;
188188
padding: 2px 4px;
189189
vertical-align: bottom;
190190
}
@@ -207,7 +207,7 @@ body {
207207
}
208208

209209
.magento-placeholder-error[data-mce-selected] {
210-
outline: 2px solid #e12525 !important;
210+
outline: 2px solid @placeholder-error-outline-mce !important;
211211
}
212212

213213
.magento-placeholder-error img,

app/code/Magento/PageBuilder/view/adminhtml/web/css/source/_var.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@
3535
@color-pagebuilder-darker-gray: #2b2625;
3636
@color-pagebuilder-darkest-gray: #1c1918;
3737
@color-pagebuilder-light-blue: #bfe2f0;
38+
@placeholder-background: #dff7ff;
39+
@placeholder-outline: #c0dffa;
40+
@placeholder-error-outline: #f7aaaa;
41+
@placeholder-error-outline-mce: #e12525;
3842

3943
//
4044
// Fonts

0 commit comments

Comments
 (0)