mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-09 05:08:28 +08:00
[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:
committed by
Commit Bot
parent
cc0eba7cd7
commit
18330e61ae
@@ -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) {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user