Claro: Wrong background for active vertical tab

Created on 18 December 2022, over 1 year ago
Updated 29 March 2023, about 1 year ago

On narrow devices, a background color (--color-gray-050-o-40) is added to the tab container. At full width, it is white.

The issue is much more noticeable when the details element gets focus.
See https://www.drupal.org/project/drupal/issues/3081500#comment-14828986 🐛 Accessibility bugs with vertical tabs Needs work

Testing steps:
1. Goto configure block page
2. On md screen size scroll down to the visibility tabs.
3. Click on any tab such as "Content type"
4. There is a grey background on part of the container. This should be white as on larger screens.

Proposed solution:
Remove the grey background on smaller screens.

🐛 Bug report
Status

Fixed

Version

10.0

Component
Claro 

Last updated about 4 hours ago

Created by

🇷🇺Russia Chi

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Status changed to Needs review over 1 year ago
  • Assigned to atul ghate
  • Issue was unassigned.
  • Assigned to varun verma
  • Issue was unassigned.
  • Status changed to RTBC over 1 year ago
  • Status changed to Needs work over 1 year ago
  • 🇦🇺Australia pameeela

    The background should be white like on larger screens.

    One set of screenshots is all that is needed for each patch. Here, there are three sets, which makes it confusing and harder to review. Please, do not add new screenshots after they have already been added!

  • Status changed to Needs review over 1 year ago
  • 🇮🇳India Gauravvv Delhi, India

    Remove the bg-color as advised in #18. Attached interdiff with #10. Attached patch for same. Please review

  • 🇮🇳India Gauravvv Delhi, India
  • 🇮🇳India DeepaliJ

    Able to reproduce the issue using steps in IS
    Applied patch #19 on Drupal 10.1.x-dev
    The patch applied cleanly.
    The background gets removed from the active verticle tab on smaller screens
    Refer to the attached screenshots

    RTBC +1

  • Status changed to RTBC over 1 year ago
  • 🇺🇸United States alison

    I confirm @DeepaliJ's findings!

    RTBC ✅

  • Status changed to Needs work over 1 year ago
  • 🇺🇸United States bnjmnm Ann Arbor, MI

    The solution appears to deviate from the original Claro designs. Perhaps someone involved with the design such as @ckrina or @saschaeggi should approve or potentially recommend a solution that preserves the design.

  • Status changed to Needs review over 1 year ago
  • 🇫🇮Finland lauriii Finland

    The root cause seems to be that we're using incorrect media query in Claro for this rule. This implements a fix according to the designs; keeps the light blue background on mobile and overrides that with a white background on desktop.

    This fix isn't entirely correct because Drupal.behaviors.verticalTabs allows configuring the breakpoint through drupalSettings. Since the variable would be needed in media query, we would have to use custom media query for this. That is not supported by any browsers so there probably isn't any value in implementing that right now.

  • Status changed to Needs work over 1 year ago
  • The Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

    Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

    Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

  • 🇮🇳India _utsavsharma

    Tried to fix CCF for #25.

  • Status changed to Needs review over 1 year ago
  • 🇮🇳India Gauravvv Delhi, India

    Patch #27, contains few irrelevant files.

    core/modules/block/src/BlockMachineNameGenerator.php
    core/modules/block/src/BlockMachineNameGeneratorInterface.php

    I have fixed one comment in #25. Please review

  • Status changed to RTBC over 1 year ago
  • 🇺🇸United States smustgrave

    This issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request as a guide.

    Confirmed this issue on Drupal 10.1 and that the patch #28 solves it.

  • 🇫🇮Finland lauriii Finland

    Looks like my patch in #25 introduced an off-by-one error 😅 Because this one is a min-width and the other usage is a max-width, we need to increase the breakpoint by one px.

    • bnjmnm committed 63f4d1f3 on 10.1.x
      Issue #3327848 by rishu_kumar, Gauravvvv, lauriii, _utsavsharma,...
    • bnjmnm committed 02cfa3c7 on 10.0.x
      Issue #3327848 by rishu_kumar, Gauravvvv, lauriii, _utsavsharma,...
  • Status changed to Fixed about 1 year ago
  • 🇺🇸United States bnjmnm Ann Arbor, MI

    This is committed to 10.1.x and cherry-picked to 10.0.x. Lauri points out that Drupal.behaviors.verticalTabs allows the breakpoint to be configurable, but I'd still consider this an unqualified fix as the media query now matches default breakpoint value. Having it match the configured value (of which there is no evidence of it being used) is something that deserves its own scope.

    Issue credit was not granted to the many, many screenshots provided after a perfectly good set was already there. +1s without additional issue-advancing content also did not receive credit

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

Production build 0.69.0 2024