We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dd637b commit 65bb7aeCopy full SHA for 65bb7ae
report-app/src/app/pages/report-viewer/lighthouse-category.ts
@@ -24,7 +24,14 @@ import {Score} from '../../shared/score/score';
24
@for (audit of audits; track audit.id) {
25
<li>
26
@if (audit.score != null) {
27
- <score size="tiny" [total]="audit.score" [max]="1"/>
+ @if (audit.scoreDisplayMode === 'binary') {
28
+ @let isPass = audit.score === 1;
29
+ <span class="status-text material-symbols-outlined {{isPass ? 'success' : 'error'}}">
30
+ {{isPass ? 'check' : 'close'}}
31
+ </span>
32
+ } @else {
33
+ <score size="tiny" [total]="audit.score" [max]="1"/>
34
+ }
35
}
36
{{audit.title}}{{audit.displayValue ? ': ' + audit.displayValue : ''}}
37
0 commit comments