Skip to content

fix(theme): use black contrastText for warning color to meet WCAG AA - #552

Open
NethmikaKekuu wants to merge 1 commit into
wso2:mainfrom
NethmikaKekuu:fix/chip-warning-contrast
Open

fix(theme): use black contrastText for warning color to meet WCAG AA#552
NethmikaKekuu wants to merge 1 commit into
wso2:mainfrom
NethmikaKekuu:fix/chip-warning-contrast

Conversation

@NethmikaKekuu

Copy link
Copy Markdown

Purpose

White text on the warning (orange) palette color fails the 4.5:1 contrast ratio required for WCAG 2.1 AA (as low as ~1.9:1 in the worst case), making small Chip/Badge labels like "Beta" nearly illegible. Switch warning.contrastText to black across WSO2Theme, PaleIndigo, and PaleGray, matching the approach HighContrastTheme already used. All affected combinations now exceed 5.5:1.

Related Issues

Related PRs

  • N/A

Checklist

  • Followed the CONTRIBUTING guidelines.
  • Manual test round performed and verified.
  • Documentation provided. (Add links if there are any)
  • Unit tests provided. (Add links if there are any)
  • Storybook stories updated/added (if applicable)

Security checks

White text on the warning (orange) palette color fails the 4.5:1
contrast ratio required for WCAG 2.1 AA (as low as ~1.9:1 in the
worst case), making small Chip/Badge labels like "Beta" nearly
illegible. Switch warning.contrastText to black across WSO2Theme,
PaleIndigo, and PaleGray, matching the approach HighContrastTheme
already used. All affected combinations now exceed 5.5:1.
@coderabbitai

coderabbitai Bot commented Jul 11, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@NethmikaKekuu, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 9 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 258a4a22-871e-41c6-b63e-6478a3a0b15a

📥 Commits

Reviewing files that changed from the base of the PR and between a588871 and 9e1316c.

📒 Files selected for processing (3)
  • packages/oxygen-ui/src/styles/Themes/PaleGray.ts
  • packages/oxygen-ui/src/styles/Themes/PaleIndigo.ts
  • packages/oxygen-ui/src/styles/Themes/WSO2Theme.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@NethmikaKekuu

Copy link
Copy Markdown
Author

@sm1990 could you please reveiw this pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Background and foreground colors do not have a sufficient contrast ratio

1 participant