Problem/Motivation

This issue is a follow-up issue based on accessibility feedback from rainbreaw.

See #2994702-107: Allow editors to alter embed-specific metadata, as well as `data-align` and `data-caption`

Dialog UI in standard profile (with Bartik theme) should use an outline around form elements when tabbing, as does demo umami profile.

Demo umami outline.

demo umami

Standard profile, highlight, but no outline.

standard profile, no outline

Proposed resolution

Suggested improvement, add outline:

suggested improvement, grey outline

Remaining tasks

  • Review
  • Commit

Comments

oknate created an issue. See original summary.

oknate’s picture

Issue summary: View changes
StatusFileSize
new61.96 KB

Suggested change, in /core/themes/bartik/css/components/ui-dialog.css

/* Add outline for accessibility */
.ui-dialog input:focus,
.ui-dialog select:focus,
.ui-dialog textarea:focus {
  outline: 1px dotted #2f2f2f;
  outline-offset: 2px;
}

oknate’s picture

Issue tags: +Accessibility
oknate’s picture

StatusFileSize
new569 bytes

Here's a patch.

outline with 2px offset

oknate’s picture

Issue summary: View changes
oknate’s picture

Issue summary: View changes
oknate’s picture

Issue summary: View changes
oknate’s picture

Title: Bartik UI Dialog tab indicator not visually distinct » Bartik :focus indicator not visually distinct in ui dialog.
oknate’s picture

Title: Bartik :focus indicator not visually distinct in ui dialog. » :focus indicator not visually distinct in ui dialog in Bartik, Seven, Classy
StatusFileSize
new1.03 KB

Fixing this for Seven (which inherits from Classy) too. No screenshot is necessary as it looks nearly identical to the screenshot in #4.

andrewmacpherson’s picture

Review of patch #8:

+/* Add outline for accessibility */
+.ui-dialog input:focus,
+.ui-dialog select:focus,
+.ui-dialog textarea:focus {
+  outline: 1px dotted #2f2f2f;
+  outline-offset: 2px;
+}
+

Why so many selectors here? Won't a :focus pseudoclass be enough, without specifying it 3 times for different element types?

What about buttons and links?

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

kiran.kadam911’s picture

We can directly use like below if we want to consider accessibility focus on all elements.

*:focus {
  outline: 1px dotted #2f2f2f;
  outline-offset: 2px;
}

and if we considering ui-dialog & it's element only then we can use below,

.ui-dialog *:focus {
  outline: 1px dotted #2f2f2f;
  outline-offset: 2px;
}

Feel free to add your opinion.

Thanks!

bandanasharma’s picture

Status: Active » Needs review
StatusFileSize
new865 bytes

Re-roll the patch for 9.x.1 as per above comments. Outline is added only for ui-dialog as of know. Please review the same.

Status: Needs review » Needs work

The last submitted patch, 14: 3077559-14.patch, failed testing. View results

kishor_kolekar’s picture

Status: Needs work » Needs review
StatusFileSize
new3.03 KB
new2.2 KB

please review the patch.

meena.bisht’s picture

Assigned: Unassigned » meena.bisht
meena.bisht’s picture

Assigned: meena.bisht » Unassigned
Status: Needs review » Reviewed & tested by the community
StatusFileSize
new100.94 KB

This patch works good to me . On using tab, Outline is added for ui-dialog in Bartik and Seven .

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 16: 3077559-16.patch, failed testing. View results

meena.bisht’s picture

Assigned: Unassigned » meena.bisht
meena.bisht’s picture

Assigned: meena.bisht » Unassigned
Status: Needs work » Needs review

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

djsagar’s picture

StatusFileSize
new3.03 KB

Re-roll patch 9.2.x.

sulfikar_s’s picture

StatusFileSize
new22.71 KB
new22.88 KB
new25.96 KB

Hi, I've tested the patch on #23. Rather than the custom commands failure(I think it's a random failure, anyway need more clarification!), It works correctly as per the requirements on the drupal 9.2.x-dev environment. I'm attaching the screenshots below.

Before,
before.png

After,
after.png

Need more clarification for the custom commands failure. Here, it is shown like this,
cc_error.png

Otherwise RTBC+1

gauravvvv’s picture

StatusFileSize
new2.24 KB

I have provided the patch, please verify if it working or not.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

rinku jacob 13’s picture

StatusFileSize
new45.99 KB
new46.47 KB

Verified and tested patch#25 for drupal 9.3.x-dev version. Patch applied successfully and looks good to me.Adding screenshot for the reference.thanks @Gauravmahlawat.

sakthivel m’s picture

StatusFileSize
new2.24 KB

#28 Fixed Custom Commands Failed.

chetanbharambe’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new277.45 KB
new300.45 KB

Verified and tested patch #28.
Patch applied successfully and looks good to me.

Testing Steps:
# Apply Bartik theme -> admin/appearance
# Goto: admin/config/content/formats
# Click on Configure
# Add Image button into Active Toolbar
# Save configuration
# Goto: node/add/article
# Goto: Body field and click on Image button to insert the image
# Check the focus indicators on respective buttons

Expected Results:
# User should see square focus applied on respective buttons

Actual Results:
# User is not able to see focus indicators on buttons

Please refer attached screenshots.
Looks good to me.
Can be a move to RTBC.

lauriii’s picture

Status: Reviewed & tested by the community » Needs work

CI is failing for the latest patch so moving back to needs work

kiran.kadam911’s picture

Status: Needs work » Needs review
StatusFileSize
new451 bytes
new1.19 KB

Providing updated patch for Bartik theme.

Kindly review the patch.

Thanks!

Status: Needs review » Needs work

The last submitted patch, 31: 3077559-31.patch, failed testing. View results

mgifford’s picture

Issue tags: +color contrast, +wcag2411

I think this is a WCAG 2.4.11 issue.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

ainsofs’s picture

Project: Drupal core » Bartik
Version: 10.1.x-dev » 1.0.2
Component: Bartik theme » Functionality
Issue tags: +Bug Smash Initiative, +DrupalSouth
StatusFileSize
new30.58 KB
new42.04 KB
new30.19 KB

Discussed with @larowlan, @seth-hilder and @tinarey. We suspected that the issue is with core as it occurs on all three themes mentioned. We found that 10.0.x have sufficient outlining for form fields in Claro and Olivero themes (see screenshots attached).

As a result we think this is only present in Bartik. Moving this issue to the Bartik queue as it is now a contrib module.

mgifford’s picture