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

Unified Diff: tracing/tracing/ui/base/tab_view.html

Issue 2292293003: [tracing] Add support for tab icons in <tr-ui-b-tab-view> (Closed)
Patch Set: Generalize to item.tabIcon.style Created 4 years, 3 months 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 | tracing/tracing/ui/base/tab_view_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/base/tab_view.html
diff --git a/tracing/tracing/ui/base/tab_view.html b/tracing/tracing/ui/base/tab_view.html
index e1bc42f3e1e98e28e39668c1ca88f232bd1c7ba7..08a15c61d1e1eb8b34faa41a0a8ef5a2a5e20b2b 100644
--- a/tracing/tracing/ui/base/tab_view.html
+++ b/tracing/tracing/ui/base/tab_view.html
@@ -56,6 +56,10 @@ and limit users to having one option selected at a time.
padding: 3px 10px 3px 10px;
}
+ #tabs tab label span {
+ font-weight: bold;
+ }
+
#tabs input[type=radio]:checked ~ label {
background-color: white;
border: 1px solid #8e8e8e;
@@ -74,7 +78,12 @@ and limit users to having one option selected at a time.
<input type=radio name=tabs id$=[[computeRadioId_(item)]]
on-change='onTabChanged_'
checked$='[[isChecked_(item)]]' />
- <label for$=[[computeRadioId_(item)]]>[[item.tabLabel]]</label>
+ <label for$=[[computeRadioId_(item)]]>
+ <template is=dom-if if=[[item.tabIcon]]>
+ <span style$='[[item.tabIcon.style]]'>[[item.tabIcon.text]]</span>
+ </template>
+ [[item.tabLabel]]
+ </label>
</tab>
</template>
</div>
« no previous file with comments | « no previous file | tracing/tracing/ui/base/tab_view_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698