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

[a11y]: Pagination dropdown white-on-white for g90 and g100 themes on Windows #9625

Closed
2 tasks done
wkeese opened this issue Sep 9, 2021 · 2 comments · Fixed by #9636
Closed
2 tasks done

[a11y]: Pagination dropdown white-on-white for g90 and g100 themes on Windows #9625

wkeese opened this issue Sep 9, 2021 · 2 comments · Fixed by #9636

Comments

@wkeese
Copy link
Contributor

wkeese commented Sep 9, 2021

Refs #9112

Package

carbon-components

Browser

Chrome

Operating System

Windows

Package version

10.43

Automated testing tool and ruleset

None, I don't think EAAC can check select dropdowns?

Assistive technology

no

Description

When you open one of Pagination's dropdowns (either items per page, or page number) and then move the mouse away, the dropdown becomes white-on-white:

Screen Shot 2021-09-09 at 16 21 28

NB: This only happens with a dark carbon theme (g90 or g100), and on Windows.

When hovering a <select> , Carbon sets the background color to rgb(53, 53, 53) and things work fine.

But when not hovering, Carbon sets each <select>'s background-color to transparent, which (non-intuitively) makes the dropdown gray on the Mac, but white on Windows.

This seems to fix it:

.#{$prefix}--select-option {
	background: $background-hover;
}

WCAG 2.1 Violation

Minimum contrast

CodeSandbox example

https://carbon-components-react.netlify.app/?path=/story/components-pagination--pagination

Steps to reproduce

Access https://carbon-components-react.netlify.app/?path=/story/components-pagination--pagination and switch the carbon theme to g100.

Code of Conduct

@tw15egan
Copy link
Collaborator

Looks like this is currently an issue with the inline variant of Select in Firefox as well
Screen Shot 2021-09-10 at 2 07 18 PM

@wkeese
Copy link
Contributor Author

wkeese commented Oct 7, 2021

Thanks! I confirm that https://carbon-components-react.netlify.app/?path=/story/components-pagination--pagination is working, including g90 and g100.

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

Successfully merging a pull request may close this issue.

2 participants