[PR #6146] [CLOSED] fix(frontend): improve config block contrast #6109

Closed
opened 2026-11-02 04:06:25 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/6146
Author: @PathGao
Created: 7/29/2026
Status: ❌ Closed

Base: main ← Head: fix-config-block-contrast


📝 Commits (3)

  • b753b30 fix(frontend): improve config block contrast
  • 5532bcb fix(frontend): preserve config block theme fills
  • 0d2fedd fix(frontend): preserve config block themes

📊 Changes

2 files changed (+9 additions, -7 deletions)

View changed files

📝 frontend/.storybook/preview.tsx (+4 -3)
📝 frontend/src/components/clients/ConfigBlock.css (+5 -4)

📄 Description

Problem

The ConfigBlock Storybook accessibility check fails because the text and fill colors resolve to an insufficient contrast ratio in the default theme. The same baseline failure affects unrelated frontend PRs.

Change

  • Use explicit accessible light-theme text and fill colors for configuration text.
  • Add a dark-theme override with the same contrast guarantee.

Validation

  • PLAYWRIGHT_BROWSERS_PATH=0 npx vitest run --project storybook src/components/clients/ConfigBlock.stories.tsx

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/6146 **Author:** [@PathGao](https://github.com/PathGao) **Created:** 7/29/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix-config-block-contrast` --- ### 📝 Commits (3) - [`b753b30`](https://github.com/MHSanaei/3x-ui/commit/b753b309d2867102fdd9ff126a4858ff16ef7c12) fix(frontend): improve config block contrast - [`5532bcb`](https://github.com/MHSanaei/3x-ui/commit/5532bcbd7ea0a68e60dd3f424eef2f80770ea6fd) fix(frontend): preserve config block theme fills - [`0d2fedd`](https://github.com/MHSanaei/3x-ui/commit/0d2fedd33c391f3a671fc6bb9cd1522c93d52839) fix(frontend): preserve config block themes ### 📊 Changes **2 files changed** (+9 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `frontend/.storybook/preview.tsx` (+4 -3) 📝 `frontend/src/components/clients/ConfigBlock.css` (+5 -4) </details> ### 📄 Description ## Problem The ConfigBlock Storybook accessibility check fails because the text and fill colors resolve to an insufficient contrast ratio in the default theme. The same baseline failure affects unrelated frontend PRs. ## Change - Use explicit accessible light-theme text and fill colors for configuration text. - Add a dark-theme override with the same contrast guarantee. ## Validation - `PLAYWRIGHT_BROWSERS_PATH=0 npx vitest run --project storybook src/components/clients/ConfigBlock.stories.tsx` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:06:25 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#6109
No description provided.