Skip to content

Commit 49e2360

Browse files
committed
Fix: Wrong CSS for Monaco Editor in the block editor
1 parent 8e96b62 commit 49e2360

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

src/block-editor/style.scss

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,46 @@
151151
.monaco-editor-wrapper {
152152
height: 100%;
153153
}
154+
155+
.monaco-editor {
156+
157+
.find-widget {
158+
159+
.button {
160+
color: inherit;
161+
background: none;
162+
border: none;
163+
164+
&:focus {
165+
box-shadow: none;
166+
}
167+
168+
&.disabled {
169+
color: inherit !important;
170+
background: none !important;
171+
}
172+
}
173+
174+
textarea:focus {
175+
box-shadow: none;
176+
}
177+
}
178+
179+
.inputarea {
180+
padding: 0;
181+
color: inherit;
182+
box-shadow: none;
183+
}
184+
185+
.monaco-icon-label-container > .monaco-icon-name-container > .label-name {
186+
text-decoration: none;
187+
}
188+
189+
.monaco-highlighted-label .highlight {
190+
display: inline;
191+
padding: 0;
192+
margin: 0;
193+
background: transparent;
194+
}
195+
}
154196
}

0 commit comments

Comments
 (0)