Merge pull request #31873 from overleaf/mj-editor-dark-input

[web] Convert input fields to dark mode in editor

GitOrigin-RevId: 420e280d5e92f70f2d44798983cdb636f3efc659
This commit is contained in:
Mathias Jakobsen
2026-03-06 09:10:42 +00:00
committed by Copybot
parent f4fc2b8e1d
commit 8ec9942114
2 changed files with 10 additions and 3 deletions
@@ -90,6 +90,7 @@ function PdfZoomDropdown({
<FormControl
onFocus={event => event.target.select()}
value={customZoomValue}
type="text"
onKeyDown={event => {
if (event.key === 'Enter') {
const zoom = Number(customZoomValue.replace('%', '')) / 100
@@ -121,9 +121,7 @@
.ide-redesign-main,
.project-ds-nav-page {
@include form-check-dark;
}
.project-ds-nav-page {
.form-control,
.form-control-wrapper {
@include dark-input;
@@ -467,7 +465,8 @@ input[type='range'] {
}
}
input.form-control[type='text'] {
input.form-control[type='text'],
input.form-control[type='search'] {
color: var(--input-field-color);
background-color: var(--input-field-bg);
border-color: var(--input-field-border-color);
@@ -476,6 +475,13 @@ input.form-control[type='text'] {
color: var(--input-placeholder-content);
}
&[disabled],
&:disabled {
&::placeholder {
color: var(--input-field-content-disabled);
}
}
&:focus,
&:focus-visible {
color: var(--input-field-color);