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

Enable contrast test #15

Merged
merged 4 commits into from
Dec 17, 2023
Merged

Enable contrast test #15

merged 4 commits into from
Dec 17, 2023

Conversation

Taucher2003
Copy link
Member

The contrast test was disabled as it was not able to work with gradients. We have now decided to not use gradients, so the test can be re-enabled.

@Taucher2003 Taucher2003 self-assigned this Dec 16, 2023
Copy link
Contributor

github-actions bot commented Dec 16, 2023

GitLab Pipeline Action

General information

Link to pipeline: https://gitlab.com/code0-tech/base-ui/-/pipelines/1110127018

Status: Passed
Duration: 2 minutes

Job summaries

storybook:build

Storybook available at https://code0-tech.gitlab.io/-/base-ui/-/jobs/5769418078/artifacts/storybook-static/index.html

The contrast test was disabled as it was not
able to work with gradients. We have now
decided to not use gradients, so the test
can be re-enabled
Axe needs to be injected after the page has
loaded. If it is injected before, it fails
on some non-existent contrast problems. It
seems that it checks the contrast during the
loading transition of storybook, so it creates
a flaky failure on the contrast test
When the input is disabled, it should be marked
as aria-disabled.
This also clears the color contrast violation
for the 50% opacity as the element is
semantically marked as disabled.
When the button is disabled, it should be marked
as aria-disabled.
This also clears the color contrast violation
for the 50% opacity as the element is
semantically marked as disabled.
@Taucher2003 Taucher2003 merged commit 1ac74c3 into main Dec 17, 2023
1 check passed
@Taucher2003 Taucher2003 deleted the enable-contrast-test branch December 17, 2023 15:03
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.

2 participants