Skip to content

UI/UX: Low-contrast secondary text color in global theme token#4158

Open
Nam0101 wants to merge 1 commit intoapache:masterfrom
Nam0101:contribai/fix/ui/low-contrast-secondary-text-color-in-glo
Open

UI/UX: Low-contrast secondary text color in global theme token#4158
Nam0101 wants to merge 1 commit intoapache:masterfrom
Nam0101:contribai/fix/ui/low-contrast-secondary-text-color-in-glo

Conversation

@Nam0101
Copy link
Copy Markdown

@Nam0101 Nam0101 commented Mar 31, 2026

Hi there! 👋

While exploring the codebase, I noticed a minor opportunity for improvement in amoro-web/vite.config.ts.

Context:
The LESS variable text-color-secondary is set to #c0c0ca, which has poor contrast on light backgrounds (commonly white in Ant Design layouts). Because this token is used globally, secondary labels, helper text, and metadata can become hard to read for low-vision users and may fail WCAG AA contrast requirements.

Proposed fix:
Increase contrast by replacing the token with a darker value that meets AA on white, e.g.: 'text-color-secondary': '#595959', (or another color with >= 4.5:1 contrast for normal text). Update in css.preprocessorOptions.less.modifyVars.

Files changed:

  • amoro-web/vite.config.ts (modified)

(Note: Tested the changes locally to ensure everything works as expected. Let me know if you need any adjustments, happy to help!)

——
NamNV
📍 Hanoi, Vietnam
📧 nam.nv205106@gmail.com

Closes #4157

The LESS variable `text-color-secondary` is set to `#c0c0ca`, which has poor contrast on light backgrounds (commonly white in Ant Design layouts). Because this token is used globally, secondary labels, helper text, and metadata can become hard to read for low-vision users and may fail WCAG AA contrast requirements.


Affected files: vite.config.ts

Signed-off-by: Nguyen Van Nam <nam.nv205106@gmail.com>
@github-actions github-actions bot added the module:ams-dashboard Ams dashboard module label Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module:ams-dashboard Ams dashboard module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: low-contrast secondary text color in global theme token

1 participant