Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

A11y fix sufficient contrast #1743

Merged
merged 4 commits into from
Jan 25, 2022

Conversation

stevefrenzel
Copy link
Contributor

@stevefrenzel stevefrenzel commented Oct 29, 2021

Description

Changed the border color for inputs and checkboxes so it has a contrast ratio of at least 3:1. New contrast ratio is now 7.01:1.

Related Issue

How Has This Been Tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation added/updated

Open tasks:

Page 1 (Alle Dateien)
When creating a public link in the case the user doesn’t fill the fields a error message appears above the form. This error message has a „X“ button on the right (to remove the message). Here the contrast ration to the background color is lower than 3:1.

Not able to reproduce this scenario, as there is no error message being displayed. Instead the submit button is just disabled as long the required input field is empty.

@stevefrenzel stevefrenzel self-assigned this Oct 29, 2021
@kulmann kulmann changed the base branch from master to a11y-updates October 29, 2021 09:58
@kulmann
Copy link
Contributor

kulmann commented Oct 29, 2021

I changed the target branch for this PR to a11y-updates - you don't want to merge to master, but to that branch.

@kulmann
Copy link
Contributor

kulmann commented Nov 4, 2021

I changed the description so that it doesn't say fixes anymore, but Works towards, because the linked issue is not entirely fixed.

@kulmann
Copy link
Contributor

kulmann commented Nov 4, 2021

This creates followup-issues (which is ok). First one I see (and didn't dig deeper) is that the upload progress component in web uses the oc-color-input-border variable as a background. Which sounds slightly wrong, so it probably makes sense to exchange that color in web.

@kulmann
Copy link
Contributor

kulmann commented Nov 4, 2021

Comparing old vs new, I think that the checkboxes now look too heavy / prominent in the web ui. They are not the primary element in the files list, so it doesn't feel right, UX wise, to give them this much attention. Please see screenshots below. Can you please try a compromise? Like contrast ratio 4:1 or 5:1?

Screenshot 2021-11-04 at 08 58 24

Screenshot 2021-11-04 at 08 58 39

@stevefrenzel
Copy link
Contributor Author

Comparing old vs new, I think that the checkboxes now look too heavy / prominent in the web ui. They are not the primary element in the files list, so it doesn't feel right, UX wise, to give them this much attention. Please see screenshots below. Can you please try a compromise? Like contrast ratio 4:1 or 5:1?

Screenshot 2021-11-04 at 08 58 24 Screenshot 2021-11-04 at 08 58 39

Input border color now has a ratio of 4.5:1, hope that works for you?

@stevefrenzel
Copy link
Contributor Author

This creates followup-issues (which is ok). First one I see (and didn't dig deeper) is that the upload progress component in web uses the oc-color-input-border variable as a background. Which sounds slightly wrong, so it probably makes sense to exchange that color in web.

If I'm not mistaken this component uses --oc-color-border but not --oc-color-input-border, which sound dangerously similar but has a completely different color.

@pascalwengerter
Copy link
Contributor

This creates followup-issues (which is ok). First one I see (and didn't dig deeper) is that the upload progress component in web uses the oc-color-input-border variable as a background. Which sounds slightly wrong, so it probably makes sense to exchange that color in web.

If I'm not mistaken this component uses --oc-color-border but not --oc-color-input-border, which sound dangerously similar but has a completely different color.

This seems to be the case, so technically resolved

@pascalwengerter
Copy link
Contributor

Comparing old vs new, I think that the checkboxes now look too heavy / prominent in the web ui. They are not the primary element in the files list, so it doesn't feel right, UX wise, to give them this much attention. Please see screenshots below. Can you please try a compromise? Like contrast ratio 4:1 or 5:1?
Screenshot 2021-11-04 at 08 58 24
Screenshot 2021-11-04 at 08 58 39

Input border color now has a ratio of 4.5:1, hope that works for you?

I'll merge "as is" and we can discuss how much contrast we want when we do the backporting, quite a lot has changed since the audit in terms of UI design

@pascalwengerter pascalwengerter merged commit 290a2c1 into a11y-updates Jan 25, 2022
@delete-merged-branch delete-merged-branch bot deleted the a11y-fix-sufficient-contrast branch January 25, 2022 16:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[a11y] 9.1.4.11 - Sufficient contrast of graphics and graphical picture elements
3 participants