Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Unified Diff: third_party/WebKit/Source/devtools/front_end/elements/ClassesPaneWidget.js

Issue 2568013003: DevTools: Fix 'Add new class' placeholder text (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/elements/elementsPanel.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/elements/ClassesPaneWidget.js
diff --git a/third_party/WebKit/Source/devtools/front_end/elements/ClassesPaneWidget.js b/third_party/WebKit/Source/devtools/front_end/elements/ClassesPaneWidget.js
index c996daeec680c7a66390659003f5ab7a3a453964..1b7ac050fb20e7fab258f14d5aa63163cf732947 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/ClassesPaneWidget.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/ClassesPaneWidget.js
@@ -10,7 +10,8 @@ Elements.ClassesPaneWidget = class extends UI.Widget {
this.element.className = 'styles-element-classes-pane';
var container = this.element.createChild('div', 'title-container');
this._input = container.createChild('div', 'new-class-input monospace');
- this._input.setAttribute('placeholder', Common.UIString('Add new class'));
+ // Placeholder will be shown via CSS ::before by UI.TextPrompt
lushnikov 2016/12/12 23:15:35 nit: let's drop the comment - the code below is de
+ this._input.setAttribute('data-placeholder', Common.UIString('Add new class'));
this.setDefaultFocusedElement(this._input);
this._classesContainer = this.element.createChild('div', 'source-code');
this._classesContainer.classList.add('styles-element-classes-container');
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/elements/elementsPanel.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698