Skip to content

Commit

Permalink
report: make metric value more prominent in table (#13036)
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark authored Sep 10, 2021
1 parent a691b25 commit ce8b184
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 13 deletions.
39 changes: 30 additions & 9 deletions report/assets/styles.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions report/assets/templates.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
<template id="metric">
<div class="lh-metric">
<div class="lh-metric__innerwrap">
<div class="lh-metric__icon"></div>
<span class="lh-metric__title"></span>
<div class="lh-metric__value"></div>
<div class="lh-metric__description"></div>
Expand Down
9 changes: 5 additions & 4 deletions report/renderer/components.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,10 +379,11 @@ function createMetricComponent(dom) {
const el0 = dom.document().createDocumentFragment();
const el1 = dom.createElement('div', 'lh-metric');
const el2 = dom.createElement('div', 'lh-metric__innerwrap');
const el3 = dom.createElement('span', 'lh-metric__title');
const el4 = dom.createElement('div', 'lh-metric__value');
const el5 = dom.createElement('div', 'lh-metric__description');
el2.append(' ', el3, ' ', el4, ' ', el5, ' ');
const el3 = dom.createElement('div', 'lh-metric__icon');
const el4 = dom.createElement('span', 'lh-metric__title');
const el5 = dom.createElement('div', 'lh-metric__value');
const el6 = dom.createElement('div', 'lh-metric__description');
el2.append(' ', el3, ' ', el4, ' ', el5, ' ', el6, ' ');
el1.append(' ', el2, ' ');
el0.append(el1);
return el0;
Expand Down

0 comments on commit ce8b184

Please sign in to comment.