[DarkMode] ui/textPrompt.css

Bug: chromium:1152736
Change-Id: Ie4bea790750e9737762305b911c13fae613a1a02
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2679495
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
Reviewed-by: Wolfgang Beyer <wolfi@chromium.org>
This commit is contained in:
Jack Franklin
2021-02-09 08:15:30 +00:00
committed by Commit Bot
parent cc0eba7cd7
commit 18330e61ae
2 changed files with 4 additions and 7 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ export class TextPrompt extends Common.ObjectWrapper.ObjectWrapper {
this._boundOnMouseWheel = this.onMouseWheel.bind(this);
this._boundClearAutocomplete = this.clearAutocomplete.bind(this);
this._proxyElement = /** @type {!HTMLElement} */ (element.ownerDocument.createElement('span'));
appendStyle(this._proxyElement, 'ui/textPrompt.css', {enableLegacyPatching: true});
appendStyle(this._proxyElement, 'ui/textPrompt.css', {enableLegacyPatching: false});
this._contentElement = this._proxyElement.createChild('div', 'text-prompt-root');
this._proxyElement.style.display = this._proxyElementDisplay;
if (element.parentElement) {
+3 -6
View File
@@ -32,21 +32,18 @@
}
.text-prompt-editing > .text-prompt {
color: #222 !important; /* stylelint-disable-line plugin/use_theme_colors */
/* See: crbug.com/1152736 for color variable migration. */
color: var(--color-text-primary) !important;
text-decoration: none !important;
white-space: pre;
}
.text-prompt > .auto-complete-text {
color: rgb(128 128 128) !important; /* stylelint-disable-line plugin/use_theme_colors */
/* See: crbug.com/1152736 for color variable migration. */
color: var(--color-text-secondary) !important;
}
.text-prompt[data-placeholder]:empty::before {
content: attr(data-placeholder);
color: rgb(128 128 128); /* stylelint-disable-line plugin/use_theme_colors */
/* See: crbug.com/1152736 for color variable migration. */
color: var(--color-text-secondary);
}
.text-prompt:not([data-placeholder]):empty::after {