Problem/Motivation

Followup for #2863354: Add border to dialog [x] close button for hover and focus states.

Proposed resolution

While #2915759: :focus is is hard to see for links in the off-canvas dialog ensures that there is visible focus styling, the contrast is not very high. We should update the design to use the focus styling from #2863354: Add border to dialog [x] close button for hover and focus states.

Pay special attention to the CSS reset for the offcanvas library.

Remaining tasks

TBD

User interface changes

Visual change for the offcanvas close button.

Before

off canvas close state before

After

off canvas close state after

API changes

Data model changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

xjm created an issue. See original summary.

andrewmacpherson’s picture

Status: Postponed » Active
Issue tags: +Accessibility, +keyboard focus

#2863354: Add border to dialog [x] close button for hover and focus states has just been marked fixed, so this is active now.

andrewmacpherson’s picture

Issue tags: +wcag21
samuel.mortenson’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
1.89 KB
71.95 KB
71.68 KB

I copied the new styling for core dialog in offcanvas, screenshots attached.

One note from the patch: top: calc(50% - 6px); isn't using "magic numbers", the 6px is from the combined (new) border size which affected positioning.

tedbow’s picture

Status: Needs review » Reviewed & tested by the community

@samuel.mortenson thanks!

This looks good to me!

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 4: 2934499-4.patch, failed testing. View results

xjm’s picture

Status: Needs work » Reviewed & tested by the community
Drupal\Tests\views\FunctionalJavascript\Plugin\views\Handler\ContextualFilterTest::testAddContextualFilterUI
Failed asserting that a NULL is not empty.

That's a new one, but definitely not introduced here.

xjm’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.5.x. Thanks!

  • xjm committed c9ca954 on 8.5.x
    Issue #2934499 by samuel.mortenson: Adjust foccus styling for the...
andrewmacpherson’s picture

Nice work! We're gradually extending coverage of missing/poor focus styles. These ones are super clear and nice to look at.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.