From 08cc14a333aa5f9eecb46e5a6fe21eb0ae921675 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Fri, 13 Dec 2024 13:01:53 +0000 Subject: [PATCH] fix(toolbar): assign label to icons --- .../src/runtime/client/dev-toolbar/apps/audit/index.ts | 2 +- .../astro/src/runtime/client/dev-toolbar/apps/xray.ts | 2 +- packages/astro/src/runtime/client/dev-toolbar/toolbar.ts | 4 ++-- .../src/runtime/client/dev-toolbar/ui-library/icons.ts | 8 ++++---- 4 files changed, 8 insertions(+), 8 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 a292be3dff..ea90e0394d 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 = - ''; + 'Audit'; 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 f382bef27d..173d71f513 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 = - ''; + 'Inspect'; export default { id: 'astro:xray', diff --git a/packages/astro/src/runtime/client/dev-toolbar/toolbar.ts b/packages/astro/src/runtime/client/dev-toolbar/toolbar.ts index 1ab7e9d09b..53bdcc6b4c 100644 --- a/packages/astro/src/runtime/client/dev-toolbar/toolbar.ts +++ b/packages/astro/src/runtime/client/dev-toolbar/toolbar.ts @@ -416,9 +416,9 @@ export class AstroDevToolbar extends HTMLElement { } getAppTemplate(app: DevToolbarApp) { - return ``; } 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 bc47970c23..d15ab3cc9d 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': `Menu`, warning: ``, 'arrow-down': - '', - bug: '', + 'Arrow down', + bug: 'Bug', '': '', 'check-circle': '', - gear: '', + gear: 'Settings', lightbulb: '', 'file-search':