Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message Component Accessibility - Color on Color is bad for accessibility, e.g blue text on blue background #7040

Closed
1 of 4 tasks
dcb99 opened this issue Jan 2, 2025 · 2 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@dcb99
Copy link

dcb99 commented Jan 2, 2025

Describe the bug

image This is one example, but blue text on a blue background does not conform to accessibility guidelines. It doesn't provide enough contrast and is a bad UX for those with colorblindness.

Pull Request Link

No response

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

No response

Reproducer

https://stackblitz.com/edit/primevue-4-vite-issue-template-39m9a5yj?file=src%2FApp.vue

Environment

Any

Vue version

3.5.x

PrimeVue version

4.x

Node version

No response

Browser(s)

No response

Steps to reproduce the behavior

Using the message component, the text color is to close to the background color.

Expected behavior

Accessibility guidelines should be followed. Text should should be contrasted from the background.

@dcb99 dcb99 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 2, 2025
@cagataycivici
Copy link
Member

cagataycivici commented Jan 7, 2025

This depends on the theme used, each preset has a different style, you can easily customize it with the design tokens. In addition, I think this ticket could have been a github discussion, thank you.

@dcb99
Copy link
Author

dcb99 commented Jan 7, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

2 participants