diff --git a/ui/core/components/detailed_results.tsx b/ui/core/components/detailed_results.tsx
index ac64ee7b3d..2cb3f50488 100644
--- a/ui/core/components/detailed_results.tsx
+++ b/ui/core/components/detailed_results.tsx
@@ -76,104 +76,6 @@ const tabs: Tab[] = [
},
];
-const layoutHTML = (
-
-
-
-
-
- {tabs.map(({ label, targetId, isActive, classes }) => (
- -
-
-
- ))}
-
-
-
-
- Run a simulation to view results
-
-
-
-
-
-
-
-
-
-
-
-
-);
-
export abstract class DetailedResults extends Component {
protected readonly simUI: SimUI | null;
protected latestRun: SimRunData | null = null;
@@ -185,7 +87,104 @@ export abstract class DetailedResults extends Component {
constructor(parent: HTMLElement, simUI: SimUI | null, cssScheme: string) {
super(parent, 'detailed-results-manager-root');
- this.rootElem.appendChild(layoutHTML);
+
+ this.rootElem.appendChild(
+
+
+
+
+
+ {tabs.map(({ label, targetId, isActive, classes }) => (
+ -
+
+
+ ))}
+
+
+
+
+ Run a simulation to view results
+
+
+
+
+
+
+
+
+
+
+
+
,
+ );
this.rootDiv = this.rootElem.querySelector('.dr-root')!;
this.simUI = simUI;
@@ -278,7 +277,7 @@ export abstract class DetailedResults extends Component {
resultsEmitter: this.resultsEmitter,
});
- const tabEl = document.querySelector('a[data-bs-target="#timelineTab"]');
+ const tabEl = document.querySelector('button[data-bs-target="#timelineTab"]');
tabEl?.addEventListener('shown.bs.tab', () => {
timeline.render();
});
diff --git a/ui/core/components/detailed_results/timeline.tsx b/ui/core/components/detailed_results/timeline.tsx
index dd07028d53..ec919f2931 100644
--- a/ui/core/components/detailed_results/timeline.tsx
+++ b/ui/core/components/detailed_results/timeline.tsx
@@ -71,6 +71,7 @@ export class Timeline extends ResultComponent {
,
);
+
this.rootElem.appendChild(
diff --git a/ui/scss/shared/_global.scss b/ui/scss/shared/_global.scss
index 1991846f59..d74b9e1601 100644
--- a/ui/scss/shared/_global.scss
+++ b/ui/scss/shared/_global.scss
@@ -58,6 +58,7 @@ button {
padding: 0;
color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
text-decoration: none;
+ outline: none;
width: auto;
text-align: inherit;
font-weight: inherit;