drupalux / claro

⛔️ DEPRECATED ⛔️ Project is worked in the Drupal.org issue tracker.
https://www.drupal.org/project/claro
GNU General Public License v2.0
29 stars 15 forks source link

Second round for accessibility feedback #62

Open ckrina opened 5 years ago

ckrina commented 5 years ago

Problem/Motivation

Recent interviews and research exposed pain points around Drupal's admin experience of looking and feeling dated, especially compared to our competitors, and universally cited that choosing a more modern-looking admin theme instantly led to Drupal being better-perceived by said users.

Proposed resolution

The Seven refresh is part of the Admin UI and JS modernization initiative. Since building a completely new UI will take some time, we’re looking for a short-term improvement for the current UI changing Seven styles based on the new Design System. After fixes suggested on this round, we'd like to post an issue on drupal.org to get feedback from all the community and to try get something ready for 8.7.

Your feedback

We are on an alpha phase of this redesign, where we've defined most of the components taking into account some previous feedback. We've created this issue to gather a first round of accessibility feedback to be sure we don't move forward on the Design System with any big accessibility issue. We'd like to get your feedback here on this issue or on the Figma file itself (with the built-in comments option) to get track of your inputs, but you can also ask us any question on the Drupal slack channel #admin-ui.

Material to review

Pages

We have several designed components and we're composing pages with them. We're attaching those here as PNG, but you can review them on this Figma file too to see colors and sizes (to see colors&sizes in Figma and comment there you need to be logged in).

new seven node edit More pages: seven-accessibility-feedback.zip

Components

But the real work has been done on components, and it's about them that we’d like to focus most of the feedback. You can check them on this Figma file to to see colors, sizes and detailed specifications.

buttons text-fields 48009712-874b6800-e11c-11e8-9840-4973a217ba8e checkboxes-radios text area quick specification

fuzzbomb commented 5 years ago

I'm having immense difficulty using Figma. I just don't understand how to operate it.

I think I can see some components on the figma document which aren't in the screenshots on this Github issue. Is there a red button with a blue outline?

I think the list of colour codes isn't complete.

fuzzbomb commented 5 years ago

The focus styles need work, they're too subtle. I used an eyedropper, and found the pale blue focus outline is #b3c9f5. That only has a contrast of 1.66:1 (https://contrast-ratio.com/#%23b3c9f5-on-white).

To pass WCAG success criterion 1.4.11 Non-text Contrast, the focus outline here would need to have a contrast of 3:1 against the white page background, AND also needs a 3:1 contrast against the button background colour. (That's because the focus outline is directly next to the button. That's my understanding of SC 1.4.11 - I'll ask for a second opinion about that in the W3C a11y Slack.)

It could be easier if the focus outline didn't touch the button background, then it would only need to have contrast against the surrounding container background.

fuzzbomb commented 5 years ago

On the drop-down selects, it has a style for "Active element (previously selected)". What's that for, and how is it supposed to behave? I don't think this is something we encounter on native dropdowns in desktop OS.

fuzzbomb commented 5 years ago

One of the text fields (in the screenshots here) has a warning triangle icon when it has an error message, but elsewhere another text field has an error message without a warning triangle. Is this intentional? There's also a select element with an error message, and that doesn't have a warning triangle.

ckrina commented 5 years ago

Thank you for the review @fuzzbomb !

fuzzbomb commented 5 years ago

The error styles for the radio and checkbox:

Use of colour:

I think we need to see the radio and checkbox errors in context on a more realistic form, to know whether the WCAG "Use of Color" is an issue.

fuzzbomb commented 5 years ago

The node edit page shows a grey background inside the URL path settings group. The various focus/selected/error states will need sufficient contrast here too, not just against the white background of the main section. Same for the primary links in the page header region.

ckrina commented 5 years ago
lauriii commented 5 years ago

I think we need to have styles available for error selected radio and checked checkbox. There are some complex use cases where that makes sense, for example when you have inputs that have validation depending on context outside the form input. And also for the checkbox, if there's a limit on how many inputs should be checked, selecting too many inputs probably should trigger that style?

ckrina commented 5 years ago

The focus styles need work, they're too subtle.

@fuzzbomb what do you think about this proposal? captura de pantalla 2018-12-03 a les 20 54 06

Error messages with and without triangles

We can’t add the error icon on all fields because it would interfere with other elements like the arrow for the select and placing it outside wouldn’t work on small spaces like mobile. The design implies that errors should be inline, so maybe it could be enough to have something else than just the colour?

checked checkboxes with error

Would it be enough in this (strange) situation too to have the inline error?

fuzzbomb commented 5 years ago

@ckrina

Yes, the button focus style is much better. The outline offset introduces an extra thin white line, so the button and focus indicator are now two separate graphic objects. This creates a stronger distinction, especially for the blue button, because there's now a shape change instead of just a size change.

The design implies that errors should be inline, so maybe it could be enough to have something else than just the colour?

But we'd want to be robust enough for sites where Inline Form Errors isn't enabled. We are also introducing Form API properties to allow developers to disable inline form errors on a per-form basis.

fuzzbomb commented 5 years ago

@lauriii

I think we need to have styles available for error selected radio and checked checkbox. There are some complex use cases where that makes sense, for example when you have inputs that have validation depending on context outside the form input.

Yes, maybe. Some examples would help. The only one I can think of right now is the "passwords don't match" error for user accounts. I can't picture any involving radios/checkboxen, but you're probably right that there are some likely situations. But the nature of that error is conveyed in the error message.

And also for the checkbox, if there's a limit on how many inputs should be checked, selecting too many inputs probably should trigger that style?

Seven doesn't do this, and it doesn't suffer from it. The "too many" is explained by the error message, inline or at the top of the form.

One reason to avoid putting a red style on every checkbox, is that it can look too alarming, with seemingly more errors than there actually are. This could be quite unfriendly to users with anxiety disorders and/or perceptual-processing disorders. There isn't a lot published about this though.

As it stands, I don't think there's enough for us to be able to say whether this is good or bad, so let's leave it in place for now. It's worth looking out for in user testing, or feedback from a wider audience. My view is that it's too "loud", and doesn't add much that isn't in the error message.

saschaeggi commented 5 years ago

@fuzzbomb as we moved the issues over to the Drupal issue queue you'll find the new discussion here: https://www.drupal.org/project/claro/issues/3021087 And thanks for your answers!