ThePacielloGroup / ARC-Toolkit

Quickly uncover and resolve accessibility issues on any web page with TPGi’s single-page, on-demand, accessibility testing tool.
https://www.tpgi.com/arc-platform/arc-toolkit/
7 stars 1 forks source link

Toolkit incorrectly marks disabled button as having an insufficient color contrast error #50

Open kirbykatie opened 10 months ago

kirbykatie commented 10 months ago

Describe the bug

Running the toolkit on a page with a disabled button, the toolkit shows an error and identifies that button as not having enough color contrast (the button is light gray with white text).

Sufficient color contrast is not needed for disabled elements, according to WCAG 2.0.

To Reproduce

Identify any steps required to reproduce the behavior and/or link to a test case that demonstrates the issue.

  1. Create or find a webpage with the following markup: <button disabled>Test</button> and with the following styling: button:disabled { background-color: #e8e5e1; color: #ffffff; }
  2. Run the ARC toolkit to confirm error.

Expected behavior

There should be no error regarding color contrast for disabled buttons.

Screenshots

disabled-error

Markup of button: markup

Version information

Additional context

Add any other context about the problem here.

aaronbnb commented 10 months ago

Thank you @kirbykatie this is a great bug report and a bug that is correctable via automated means.

kirbykatie commented 10 months ago

Thank you for looking into it! I also just learned another team we're working with found the same issue with a disabled checkbox, so I just want to flag that all disabled HTML elements should not get an insufficient color contrast error.

kirbykatie commented 7 months ago

Hello! Following up on this - is there a an upcoming release where this issue is expected to be resolved?

ferllings commented 7 months ago

Sorry for the delay. The next release will include this fix.