Tab highlights for current/hover/click are too high up when other tabs have 2 lines of text

Created on 7 November 2023, about 1 year ago
Updated 18 June 2024, 5 months ago

Problem/Motivation

This happens in Module Builder, on the set of tabs for a module entity, with the screen wide enough to show tabs rather than the compact tab menu, but narrow enough to cause wrapping of tabs with multiple words.

The 3 highlight types should reach the bottom of the grey area.

Steps to reproduce

1. Install Module builder
2. Go to admin/config/development/module_builder
3. Create a module and save it
4. Adjust the window width

Proposed resolution

The tab's should be bottom aligned and equal in height for normal and hover states.

Remaining tasks

Review the MR

User interface changes

Before:


After:


API changes

NA

Data model changes

NA

Release notes snippet

NA

🐛 Bug report
Status

Fixed

Version

10.3

Component
Claro 

Last updated 3 days ago

Created by

🇬🇧United Kingdom joachim

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

Merge Requests

Comments & Activities

  • Issue created by @joachim
  • 🇮🇳India BhumikaVarshney Delhi

    Working on this issue as a part of Claro Contribution Day.

  • 🇨🇭Switzerland saschaeggi Zurich

    This is a small bug which needs some love from a (frontend) developer ☺️

    This might be easily fixible with using

    align-items: baseline;
    height: 100%;
    
  • 🇮🇳India BhumikaVarshney Delhi

    Hi saschaeggi,
    I tried to reproduce this issue with Drupal 11.x version but as per the steps mentioned to
    Install Module builder
    But this module is not compatible with this version adding screenshot for the same.
    Can we check this with d10 version or anything am missing on my end.
    Thank you!

  • 🇨🇭Switzerland saschaeggi Zurich

    @BhumikaVarshney you can easily mock this situation by just duplicating a few tabs in the inspect mode

  • First commit to issue fork.
  • Merge request !5872Tab highlights fixes. → (Open) created by Meeni_Dhobale
  • Status changed to Needs review 11 months ago
  • 🇮🇳India Meeni_Dhobale

    I added the MR by changing the nav bottom padding and alignment centre. Those two property solves the issues. Adding a screenshot for reference.

  • Pipeline finished with Success
    11 months ago
    Total: 500s
    #65792
  • Status changed to Needs work 11 months ago
  • 🇺🇸United States smustgrave

    Can steps that don't require a contrib module be added?

    But as a UI change will need before/after screenshots added to the issue summary (preferably with core), also the proposed solution added.

  • I can see some differences see screenshots -

    Tabs with core-

    Tabs with contrib module (module builder)

  • Status changed to Needs review 11 months ago
  • 🇮🇳India Meeni_Dhobale

    Here are some steps to reproduce:
    * Login as admin
    * Go to any content type/contact form or anything where we can see the tabs menu. eg. /admin/structure/types/manage/article/fields
    * Try to replicate those tab menus by inspecting the page, So we can see the multiple tabs that can get the whole display width or adjust the screen size accordingly.
    * Now check the tabs by enabling focus on it.

    Here are the before and after images:
    Before:

    After:

  • Assigned to Kanchan Bhogade
  • Issue was unassigned.
  • Status changed to RTBC 11 months ago
  • 🇮🇳India Kanchan Bhogade

    Hi, I have verified this issue in Drupal 11 with the Claro theme. The issue related to the Tab highlights for current/hover/click is too high up when other tabs have 2 lines of text of the claro has been fixed.
    Testing steps followed :
    1. Install Drupal 11
    2. Make the Claro theme
    3. Go to the Content and check for tabs with 2 lines of text
    4. Apply the patch
    5. check for tabs will able to see Centraline text

    Attaching the screenshots. Moving to RTBC

  • 🇮🇳India rifas-ali-pbi Kerala

    @kanchan-bhogade better do not assign task to yourself and status will be changed to RTBC by reporter or maintainer after verifying the screenshot. https://www.drupal.org/association/blog/a-drupal-contribution-guide-gues...

    Thanks.

  • Status changed to Needs work 9 months ago
  • 🇫🇷France nod_ Lille

    has anyone tried the suggestion in #3? Having the items centered is not better than the current situation. I would expect the tabs to be aligned at the bottom so that the highlighted border is always against the white part of the page.

    With the current patch the border floats in the middle for short menu items like "edit".

  • First commit to issue fork.
  • Pipeline finished with Failed
    9 months ago
    Total: 289s
    #106116
  • Pipeline finished with Failed
    9 months ago
    Total: 173s
    #106122
  • Pipeline finished with Failed
    9 months ago
    Total: 177s
    #106766
  • Pipeline finished with Success
    9 months ago
    Total: 586s
    #106782
  • Status changed to Needs review 9 months ago
  • 🇮🇳India shashwat-tiwari Bengaluru

    I have amended the MR by changing the alignment to end and making the list and anchors 100% in height to make all elements equal in height and align at the same level.
    Please refer to the attached screenshots of after and before for normal and hover states.






  • Status changed to Needs work 9 months ago
  • 🇺🇸United States smustgrave

    Issue summary is incomplete, missing proposed solution and before/after screenshots in user interface changes.

  • Status changed to Needs review 9 months ago
  • 🇮🇳India shashwat-tiwari Bengaluru

    I have updated the issue summary with proposed resolution and before/after screenshots.

  • Status changed to Needs work 9 months ago
  • 🇺🇸United States smustgrave

    Feedback on the MR

  • First commit to issue fork.
  • Pipeline finished with Success
    9 months ago
    Total: 491s
    #108134
  • 🇮🇳India Mithun S Bangalore

    Changing the .tabs to .tabs__link will make the UI look like this ( screenshot: Tab-links-UI ) . Also the UI beaks on click of the tabs. This issue Needs more work.

  • 🇮🇳India zaryab_drupal Bhopal

    zaryab_drupal changed the visibility of the branch 3399956-tab-highlights-for to hidden.

  • Status changed to Needs review 7 months ago
  • 🇺🇸United States anilu@ Houston, TX
  • 🇺🇸United States xjm

    Based on the numerous different approaches that have been tried, I think this isn't really in a novice task state ATM. Thanks!

  • Status changed to Needs work 7 months ago
  • 🇺🇸United States smustgrave

    Seems #22 mentions the current solution is breaking so moving to NW for that.

  • First commit to issue fork.
  • Status changed to Needs review 7 months ago
  • 🇮🇳India gauravvvv Delhi, India

    I have addressed #22, using a different approach for mobile and desktop. please review. thanks

  • 🇫🇷France nod_ Lille

    Haven't tested it yet but I like this much better, thanks

  • Pipeline finished with Failed
    7 months ago
    Total: 6118s
    #168343
  • 🇮🇳India ehsann_95

    The MR in #29 looks good. All tablinks are bottom aligned now. Attaching screenshots for ref.

    I also see the border-bottom of focus outline is not visible. Do we need to keep it as it is or it also needs a fix?

  • Status changed to Needs work 7 months ago
  • 🇺🇸United States smustgrave

    Needs a rebase for the failures I believe. But if new solution can it please be documented in the issue summary.

  • Pipeline finished with Success
    6 months ago
    Total: 526s
    #171331
  • Status changed to Needs review 6 months ago
  • Status changed to RTBC 6 months ago
  • 🇺🇸United States smustgrave

    Should be good

  • 🇫🇷France nod_ Lille

    saving credits, MR needs work, comments incoming

  • Pipeline finished with Failed
    6 months ago
    #190556
  • Pipeline finished with Success
    6 months ago
    Total: 504s
    #190565
    • nod_ committed f761bb6a on 10.3.x
      Issue #3399956 by shashwat-tiwari, nod_, Gauravvvv, Meeni_Dhobale,...
    • nod_ committed 42ffad69 on 10.4.x
      Issue #3399956 by shashwat-tiwari, nod_, Gauravvvv, Meeni_Dhobale,...
    • nod_ committed 4f8a4637 on 11.0.x
      Issue #3399956 by shashwat-tiwari, nod_, Gauravvvv, Meeni_Dhobale,...
    • nod_ committed 20a080c2 on 11.x
      Issue #3399956 by shashwat-tiwari, nod_, Gauravvvv, Meeni_Dhobale,...
  • Status changed to Fixed 6 months ago
  • 🇫🇷France nod_ Lille

    I really wished the feedback in #3 had been followed early on, it would have saved 6 month of delay.

    Fixed the duplicate selector on commit.

    Committed and pushed 20a080c2e9 to 11.x and 4f8a463739 to 11.0.x and 42ffad694f to 10.4.x and f761bb6ab6 to 10.3.x.

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

Production build 0.71.5 2024