Skip to content

Nacos V3.2.0版本,Windows7新版控制台,页面色彩丢失 #14882

Closed

Description

@pandudu

Describe the bug
在 Windows 7 系统环境下,MicroSoft Edge浏览器(版本:109.0.1518.49),Nacos V3.2.0 的新版控制台界面存在严重的色彩丢失问题。整个页面呈灰白或严重褪色状态,缺失了应有的色彩

Expected behavior
控制台界面应正常显示色彩。所有功能区域、文字、图标和按钮均应具备设计规定的正确颜色(例如,“new”标签应有醒目的颜色,链接和交互元素应保持其预期的色调)。

Actually behavior
整个控制台界面色彩显示异常,呈严重的褪色状态。页面主要呈现为黑、白、灰的色调

How to Reproduce
http://ip:8080/next

Desktop (please complete the following information):

  • OS: Windows7
  • Version nacos-server v3.2.0
  • MicroSoft Edge浏览器(版本:109.0.1518.49)

Additional context

Image

Activity

  1. shiyiyue1102 commented on May 2, 2026

    @shiyiyue1102
    Collaborator

    Thanks for the report and clear reproduction info. The root cause is that the new console (console-ui-next) uses Tailwind CSS v4, which defines all colors in the oklch() color space by default. oklch() is supported from Chromium 111+, but Edge 109 on Windows 7 is based on Chromium 109, so the browser discards all unrecognized color values, resulting in the gray/colorless appearance.

    A possible fix would be to configure a Tailwind CSS compatibility fallback (e.g., using a PostCSS plugin or Tailwind's legacy color format option) to emit rgb()/hsl() alongside oklch(). However, since Win7 and Edge 109 are both EOL, the scope of this compatibility effort is worth discussing.

    As a workaround, using Chrome 111+ or any Chromium 111+ browser (if available on your system) should resolve the display issue.


    感谢反馈和清晰的复现信息。根因是新版控制台(console-ui-next)使用了 Tailwind CSS v4,其默认用 oklch() 色彩空间定义所有颜色。oklch() 从 Chromium 111 才开始支持,而 Win7 上的 Edge 109 基于 Chromium 109,浏览器会丢弃无法识别的颜色值,导致整个页面呈灰白色。

    可行的修复方向是配置 Tailwind CSS 兼容性回退(如通过 PostCSS 插件或 Tailwind 的 legacy 颜色格式选项),在 oklch() 旁同时输出 rgb()/hsl()。不过 Win7 和 Edge 109 都已 EOL,兼容性修复的范围值得讨论。

    临时解决方案:使用 Chrome 111+ 或其他 Chromium 111+ 内核的浏览器即可正常显示。

  2. shiyiyue1102 commented on May 3, 2026

    @shiyiyue1102
    Collaborator

    Since Windows 7 and Edge 109 are EOL, the team will not prioritize this compatibility fix internally. However, the fix direction is clear (Tailwind CSS oklch to rgb/hsl fallback via PostCSS plugin), so we are marking this as good first issue for community contributors who want to help. PRs welcome.


    由于 Win7 和 Edge 109 已 EOL,团队不会内部优先修复此兼容性问题。但修复方向明确(通过 PostCSS 插件为 Tailwind CSS 的 oklch 添加 rgb/hsl 回退),因此标记为 good first issue,欢迎社区贡献者提交 PR。

  3. added this to the 3.2.2 milestone on May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions