From 98f9e833a5610cbd6f966a827451318435d31483 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Fri, 20 Dec 2024 15:23:35 +0000 Subject: [PATCH] fix(toolbar): assign label to icons (#12734) --- .../src/runtime/client/dev-toolbar/apps/audit/index.ts | 2 +- .../astro/src/runtime/client/dev-toolbar/apps/xray.ts | 2 +- .../src/runtime/client/dev-toolbar/ui-library/icons.ts | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/astro/src/runtime/client/dev-toolbar/apps/audit/index.ts b/packages/astro/src/runtime/client/dev-toolbar/apps/audit/index.ts index a292be3dff82..e6c7777cc19f 100644 --- a/packages/astro/src/runtime/client/dev-toolbar/apps/audit/index.ts +++ b/packages/astro/src/runtime/client/dev-toolbar/apps/audit/index.ts @@ -9,7 +9,7 @@ import { DevToolbarAuditListWindow } from './ui/audit-list-window.js'; import { createAuditUI } from './ui/audit-ui.js'; const icon = - ''; + ''; export type Audit = { auditedElement: HTMLElement; diff --git a/packages/astro/src/runtime/client/dev-toolbar/apps/xray.ts b/packages/astro/src/runtime/client/dev-toolbar/apps/xray.ts index f382bef27d5d..6b1e14340dfc 100644 --- a/packages/astro/src/runtime/client/dev-toolbar/apps/xray.ts +++ b/packages/astro/src/runtime/client/dev-toolbar/apps/xray.ts @@ -17,7 +17,7 @@ import { } from './utils/window.js'; const icon = - ''; + ''; export default { id: 'astro:xray', diff --git a/packages/astro/src/runtime/client/dev-toolbar/ui-library/icons.ts b/packages/astro/src/runtime/client/dev-toolbar/ui-library/icons.ts index bc47970c238c..f966602531a8 100644 --- a/packages/astro/src/runtime/client/dev-toolbar/ui-library/icons.ts +++ b/packages/astro/src/runtime/client/dev-toolbar/ui-library/icons.ts @@ -23,15 +23,15 @@ export function getIconElement( } const icons = { - 'astro:logo': ``, + 'astro:logo': ``, warning: ``, 'arrow-down': - '', - bug: '', + '', + bug: '', '': '', 'check-circle': '', - gear: '', + gear: '', lightbulb: '', 'file-search':