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

Accessibility: Button Contrast #4788

Open
Ibabalola opened this issue May 13, 2024 · 0 comments
Open

Accessibility: Button Contrast #4788

Ibabalola opened this issue May 13, 2024 · 0 comments

Comments

@Ibabalola
Copy link

Describe the bug
Default buttons within the modal were found to fail minimum non-text contrast requirements. This
issue can be found with the previous and next month buttons on the page. Users who find it
difficult to differentiate between low contrast colours will have an issue locating the focus
on the element.

<button type="button" class="react-datepicker__navigation react-
datepicker__navigation--previous" aria-label="Previous Month"><span class="react-
datepicker__navigation-icon react-datepicker__navigation-icon--previous">Previous
Month</span></button>

To Reproduce
Steps to reproduce the behavior:

Open the react date picker via modal or custominput

Expected behavior
Ensure that interactive non-text content on the page achieves a minimum contrast ratio of
3:1 against the background/adjacent colours. The arrows need to contrast against the light
grey background.

Screenshots
Screenshot 2024-05-13 at 20 40 40

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

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

No branches or pull requests

1 participant