I was asked by @tim.plunkett on Slack to look at an issue for #2905922: Implementation issue for Layout Builder
I did a quick review and ran into some issues that Tim said were related to the Off-Canvas dialog in the Settings Tray module.
I just noticed that it is still marked "Needs accessibility review" but seems to be marked stable. As I mentioned to Tim, I'm not sure who is regularly checking "Needs accessibility review" at this point. We're a pretty small team and it is difficult enough to keep up with "accessibility".
What Tim did is correct. If you need us to do a review, please reach out to the Accessibility Slack Channel. Before something gets marked stable, please let's make sure it has had some review and that we remove the "Needs accessibility review" tag.
Anyways, I think these 3 issues (still with the numbering from my comment #2905922-73: Implementation issue for Layout Builder:
1) the "Choose a layout" panel that popus up after clicking on "Add Section" has no focus or hover states. It is very difficult to find out where you are and how to close the window. Some simple CSS should fix this.
4) When adding a block to a layout there is the same problem with lack of focus/hover that is mentioned in #1. It actually might be there but it is very faint and there is a bit of a delay so hard to notice.
5) As Tim pointed out in slack, there are some color contrast issues. #46a0f5 on #222222 doesn't pass.
Please let me know if there are any questions.
Comment | File | Size | Author |
---|---|---|---|
#6 | Screen Shot 2017-10-31 at 8.30.16 AM.png | 20.97 KB | mgifford |
#6 | Screen Shot 2017-10-31 at 8.18.03 AM.png | 380.58 KB | mgifford |
Comments
Comment #2
andrewmacpherson CreditAttribution: andrewmacpherson as a volunteer and at Annertech commentedI don't know if (1) and (4) are going to affect all possible content in the settings tray. Ideally I think we'd get a standard set of styles for the settings tray.
(5) I can't find #222222 anywhere. Which element is this about? #46a0f5-on-#222 has a fairly good contrast ratio of 5.8:1 (passes WCAG AA), but I don't know which element we're talking about.
Comment #3
andrewmacpherson CreditAttribution: andrewmacpherson as a volunteer and at Annertech commentedThe close button "X" has an inconsistent focus style.
In Webkit/Blink it has a solid blue border, with rounded corners. I can't see any CSS for it, so I assume it's the default browser style. It's a nice style, but we need to ensure the blue colour has sufficient contrast against #2d2d2d settings tray title background (
.ui-dialog.ui-dialog-off-canvas .ui-dialog-titlebar
).In Firefox, the close button has no discernible focus style. It's baffling, because I can't see any CSS which would override the default 1px dotted outline.
TODO: what does it look like in IE11 and Edge?
Comment #4
andrewmacpherson CreditAttribution: andrewmacpherson as a volunteer and at Annertech commentedThe button and link styles inside of the settings tray content are communicated by a slight colour change alone. If you avert your eyes from the screen, then look back again, it's not clear what has focus. This will likely be a failure of WCAG 2.1 SC 1.4.12 User Interface Component Contrast (Minimum).
Our blue-oval primary buttons in Seven get a halo when focused, which is clearer because it's a shape change. (The outlines which browsers provide by default also work this way.)
We need to review focus styles across the entire admin UI as part of #2864791: Implement new Success Criteria from WCAG 2.1. Tagging,
Comment #5
andrewmacpherson CreditAttribution: andrewmacpherson as a volunteer and at Annertech commentedNote we also have #2863354: Add border to dialog [x] close button for hover and focus states for the other dialogs.
Comment #6
mgiffordJust adding a screenshot for #5.
Good point about the close button "X", we are talking about this one, right? I couldn't see a focus in Firefox for any of the elements here. I've got pretty good eyes, but without knowing where I am, it very hard to know where I am. I think that there's a delay which is screwing it up for me:
I think you wanted to tag wcag21 in #4 above.
Comment #7
tedbowI created #2915759: :focus is is hard to see for links in the off-canvas dialog before not sure if we want to mark as a duplicate or keep it open.
Comment #8
xjmThanks @andrewmacpherson and @mgifford. The offcanvas library is marked stable because it doesn't expose anything to end users by itself, but Settings Tray will be the first module that exposes it to end users, so any serious accessibility issues need to be addressed before Settings Tray itself can be stable.
[x]
button is a bug, but core dialogs have a similar (worse?) issue in as reported in #2863354: Add border to dialog [x] close button for hover and focus states so that one doesn't need to be a stable blocker.Since we sort of have two metas, this and #2928409: [META] Accessibility issues for Settings Tray , my suggestion would be to mark this as a duplicate once a dedicated issue is filed for the contrast ratio.
Thanks everyone!
Comment #9
samuel.mortensonCreated #2934178: Contrast issues with off-canvas dialog styling to address the contrast ratio issues.
Comment #10
xjmAlright, I updated #2928409: [META] Accessibility issues for Settings Tray and I think that's enough to mark this as a duplicate. Thanks everyone!
Comment #11
xjmAh wait, I think we need to file one more issue for the close button to match the new designs for the dialog system. Once it's filed (doesn't need to be fixed) then we can mark this as a dupe.
Comment #18
mgifford