Problem/Motivation

Vertical tabs are not working optimally in forced colors mode. See videos for reference: https://youtu.be/6j0Z62R2bEA and https://youtu.be/VtWjPn5p5-w.

Steps to reproduce

  1. Install drupal 11.x-dev.
  2. Navigate to the vertical tabs.
  3. Added custom block and the palce in any region.
  4. At the bottom of left side, See the visibility of vertically tabs.

Forced colors mode steps : -

  1. Open Developer Tools
  2. Open Command Menu (Ctrl+Shift+P (PC) or Cmd+Shift+P (Mac))
  3. Type Rendering
  4. In the Rendering panel, scroll down to the Emulate CSS media feature forced-colors and activate it from the drop-down.

Proposed resolution

-Apply appropriate border colour on active tab.
tab

https://git.drupalcode.org/project/drupal/-/merge_requests/6003

Remaining tasks

Review/Commit

User interface changes

Before

before

After

after

API changes

NA

Data model changes

NA

Release notes snippet

NA

Issue fork drupal-3277287

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

lauriii created an issue. See original summary.

rootwork’s picture

Tagging as novice as I think this would be a good opportunity for someone to watch the videos and then write a detailed list of what to fix.

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.

cindytwilliams’s picture

Issue tags: -Portland2022 +Prague2022

Tagging this issue for first time contributors at DrupalCon Prague 2022.

rodrigoaguilera’s picture

Version: 9.5.x-dev » 10.1.x-dev
Issue summary: View changes

Triaging this for Drupalcon Prague 2022 mentored sprints.
Added next steps and changing to 10.1.x as bug fixes should go there first and then be backported if appropriate.

nataliajustice’s picture

Hi, I am at the Mentor Sprints of the Drupal Prague 2022 and I am trying to figure out which is the problem. I have watched the videos and replicated the issue of the vertical tabs in forced colors mode.
I can see that when you change the focus between the vertical tab elements, the user is not able to see the difference between an active and a focused tab. Is this the issue that we should fix there? What do we need to improve the high-contrast support?

akmalfikri’s picture

I tried to reproduce the video by the creator of the issue.

Here is the Light mode (forced) : https://youtu.be/3SSgTfTqHXc

Here is the Dark mode (forced) : https://youtu.be/kQ4Y5xXpkIM

I cannot reproduce the issue as shown in the initial video by the issue creator.

Notes :

Forced colors steps :

  1. Open Developer Tools
  2. Open Command Menu (Ctrl+Shift+P (PC) or Cmd+Shift+P (Mac))
  3. Type Rendering
  4. In the Rendering panel, scroll down to the Emulate CSS media feature forced-colors and activate it from the drop-down.
j_s’s picture

It might be nice to have more visual difference with the active state.

The hover state essentially removes the left 'border', as well as top or bottom when it's the first or last tab with .vertical-tabs__menu-link:hover::before. With focus, it just adds an outline with .page-wrapper *:focus, .ui-dialog *:focus.

There may also be something of a conflict if a tab has both states of active and hover. The white border on the right gets removed, and some of the 'border' on the left gets removed.

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

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

preeti.chawla’s picture

@lauriii
Please explain more on this, what exactly do we need to improve in forced colors mode for vertical tabs menu

gauravvvv’s picture

Status: Active » Needs review
StatusFileSize
new2.88 KB

I have added border for forced color state, please review

smustgrave’s picture

Status: Needs review » Needs work

Moving to NW for issue summary update.

Before/after video or screenshots should be added to the IS too.

Anita Verma made their first commit to this issue’s fork.

anita verma’s picture

Assigned: Unassigned » anita verma
anita verma’s picture

Issue summary: View changes
anita verma’s picture

Issue summary: View changes
anita verma’s picture

Status: Needs work » Needs review
anita verma’s picture

Assigned: anita verma » Unassigned
smustgrave’s picture

Status: Needs review » Needs work

Based on the steps that were added has that info been gathered?

Not sure those are valid steps to reproduce though.

Missing section for UI changes meaning before/after screenshots mentioned

shweta__sharma’s picture

Issue summary: View changes

Updated issue summary.

shweta__sharma’s picture

In #11 ( 3277287-11.patch ) patch does not apply

anita verma’s picture

Issue summary: View changes
StatusFileSize
new62.94 KB
anita verma’s picture

Issue summary: View changes
anita verma’s picture

Issue summary: View changes
anita verma’s picture

Issue summary: View changes

sudishth made their first commit to this issue’s fork.

sudishth’s picture

Status: Needs work » Needs review

Rebased with project:11.x

smustgrave’s picture

FYI this was tagged for novice

smustgrave’s picture

Status: Needs review » Needs work

Mixing MRs and patches now, need to clean up what is reviewed.

As mentioned this was tagged for novice, which means it was intended for newer users to get involved in Drupal

@Gauravvvv you have 47 pages of posts so definitely not a novice
@sudishth you have 9 also not novice.

Please try and work on non novice issues

shweta__sharma’s picture

Status: Needs work » Needs review

Hide patch which is not needed. The latest MR is ( Merge request !6003 ) which needs to be reviewed.

@Anita Verma, You updated the IS which did not indicate what exactly the issue is and how we can replicate the issue. The issue is not in the normal mode we need to highlight the forced colour mode in STR. I had added it earlier but you changed it.

smustgrave’s picture

Status: Needs review » Needs work

Since this appears to be with forced color mode can we get a screenshot added of it fixed in that mode. Current screenshot is just normal display it seems.

shweta__sharma’s picture

StatusFileSize
new173.38 KB
new263.93 KB

Tested MR 6003
Added after/before screenshots.
Thanks

shweta__sharma’s picture

Issue summary: View changes
Status: Needs work » Needs review

Added standard IS template and updated the issue summary.

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: -Needs issue summary update

When updating issue summary please remove the tag. But IS looks good now.

quietone’s picture

I'm triaging RTBC issues. I read the IS, the comments and the MR. I didn't find any unanswered questions.

Thanks to @smustgrave for commenting on the remaining work here and getting the Issue Summary completed.

Leaving at RTBC;

  • nod_ committed b4a0a9e7 on 11.x
    Issue #3277287 by Gauravvvv, Anita Verma, shweta__sharma, smustgrave,...
nod_’s picture

Status: Reviewed & tested by the community » Fixed

Committed b4a0a9e and pushed to 11.x. Thanks!

  • nod_ committed 93cb498a on 10.2.x
    Issue #3277287 by Gauravvvv, Anita Verma, shweta__sharma, smustgrave,...

Status: Fixed » Closed (fixed)

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