diff --git a/packages/elements/src/components/file/file.component.ts b/packages/elements/src/components/file/file.component.ts index 66aad070b..a387ce8a9 100644 --- a/packages/elements/src/components/file/file.component.ts +++ b/packages/elements/src/components/file/file.component.ts @@ -1,6 +1,7 @@ import type { PropertyValues } from 'lit'; import { html, nothing, svg, unsafeCSS } from 'lit'; import { customElement, property, state } from 'lit/decorators.js'; +import { classMap } from 'lit/directives/class-map.js'; import { map } from 'lit/directives/map.js'; import { createRef, ref } from 'lit/directives/ref.js'; import type { FileUnderTestModel, MutantModel } from 'mutation-testing-metrics'; @@ -139,7 +140,7 @@ export class FileComponent extends RealTimeElement { (mutant) => svg` diff --git a/packages/elements/src/components/test-file/test-file.component.ts b/packages/elements/src/components/test-file/test-file.component.ts index ab4ee51ff..cbdae7cdc 100644 --- a/packages/elements/src/components/test-file/test-file.component.ts +++ b/packages/elements/src/components/test-file/test-file.component.ts @@ -6,6 +6,7 @@ import type { TestFileModel, TestModel } from 'mutation-testing-metrics'; import { TestStatus } from 'mutation-testing-metrics'; import style from './test-file.scss?inline'; +import { classMap } from 'lit/directives/class-map.js'; import { map } from 'lit/directives/map.js'; import { repeat } from 'lit/directives/repeat.js'; import { determineLanguage, gte, highlightCode, transformHighlightedLines } from '../../lib/code-helpers.js'; @@ -161,7 +162,7 @@ export class TestFileComponent extends RealTimeElement { (test) => svg` { ev.stopPropagation(); this.toggleTest(test); @@ -170,11 +171,13 @@ export class TestFileComponent extends RealTimeElement { width="12" > ${title(test)} - ${this.selectedTest === test - ? // Triangle pointing down - svg`` - : // Circle - svg``} + ${ + this.selectedTest === test + ? // Triangle pointing down + svg`` + : // Circle + svg`` + } `, ) : nothing;