feat: add back control to "expand sidebar" and improve a11y

未关闭
#1,147 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
nuxt, typescript

调研方向

Start by locating the docked devtool icon and sidebar controls in the Nuxt devtools UI, then read their accessibility tests or component tests if present. The issue asks for a larger docked click area, an option to expand the sidebar, and consistent readable visual metrics across tools. Done means these requested controls and accessibility improvements are implemented and verified in the UI; the issue names no files or tests.

由索引模型根据 Issue 内容生成。

描述

enhancement
🆒 Your use case

The previous versions of nuxt-devtool had the "Expand sidebar"
I've upgraded to v4, and can't seem to find this option.
Was this removed intentionally?

v3
Image

v4
https://github.com/user-attachments/assets/cd9f703e-ce47-4320-af99-2d827e67a663

For a11y reason, I noticed the click area for the devtool icon, when docked, has become smaller.

🆕 The solution you'd like
  • Increase the click area when the devtool is docked (for a11y)
Image Image
  • Have the option to "Expand Sidebar", at least for the Nuxt devtool. It has tooltips, yes, but with an expanded sidebar option, one can easily find what they're looking for, without guessing and hovering what each icon does
  • Don't know how possible this will be, but can we have an accessible metrics for what the foreground and background colors, font sizes, should be? Compare these: Nuxt devtools and Unhead:
Image Image I didn't change any settings in between, but notice how small the fonts got when I switched from Nuxt to Unhead.
🔍 Alternatives you've considered

No response

ℹ️ Additional info

No response

主要语言
TypeScript
星标
3.3k
派生
224
平均合并
1 天 9 小时
30 天内合并 PR
25

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nuxt/devtools 的其他 Issue

查看 nuxt/devtools 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。