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:
Tabs Before
Tabs Before Hover State
Tabs Before Hover State

After:
Tabs After
Tabs After Hover State
Tabs After Hover State

API changes

NA

Data model changes

NA

Release notes snippet

NA

Issue fork drupal-3399956

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

joachim created an issue. See original summary.

bhumikavarshney’s picture

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

saschaeggi’s picture

Issue tags: +Novice

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%;
bhumikavarshney’s picture

StatusFileSize
new46.67 KB

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!

saschaeggi’s picture

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

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

meeni_dhobale’s picture

Status: Active » Needs review
StatusFileSize
new29.64 KB

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

smustgrave’s picture

Status: Needs review » Needs work
Issue tags: +Needs screenshots

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.

shweta__sharma’s picture

StatusFileSize
new1.09 MB
new1.05 MB

The issue is mentioned above not replicable on my end. Highlighting tabs looks completely different see my screenshots -

Tabs with core-

core

Tabs with contrib module (module builder)

with-module-builder

meeni_dhobale’s picture

Status: Needs work » Needs review
StatusFileSize
new38.95 KB
new39.47 KB

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:

kanchan bhogade’s picture

Assigned: Unassigned » kanchan bhogade
kanchan bhogade’s picture

Assigned: kanchan bhogade » Unassigned
Status: Needs review » Reviewed & tested by the community
StatusFileSize
new49.34 KB
new47.08 KB

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

rifas-ali-pbi’s picture

Issue summary: View changes
Issue tags: -Needs screenshots

@kanchan-bhogade better do not assign task to yourself and status will be changed to RTBC by reporter or maintainer after verifying the screenshot.

Thanks

nod_’s picture

Status: Reviewed & tested by the community » Needs work

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".

shashwat-tiwari made their first commit to this issue’s fork.

shashwat-tiwari’s picture

Status: Needs work » Needs review
StatusFileSize
new61.38 KB
new65.14 KB
new67.99 KB
new61.64 KB
new66.4 KB
new71.85 KB

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.

Tabs Before
Tabs Before Hover State
Tabs Before Hover State
Tabs After
Tabs After Hover State
Tabs After Hover State

smustgrave’s picture

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

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

shashwat-tiwari’s picture

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

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

smustgrave’s picture

Status: Needs review » Needs work
Issue tags: -Needs screenshots

Feedback on the MR

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

mithun s’s picture

StatusFileSize
new40.8 KB

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.

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

anicoto’s picture

Status: Needs work » Needs review
Issue tags: +Portland2024
Novice issue reserved for the Mentored Contribution during the Contribution Day at DrupalCon Portland 2024. After the 8th of May 2024, this issue returns to being open to all. Thanks
xjm’s picture

Issue tags: -Novice, -Portland2024

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

smustgrave’s picture

Status: Needs review » Needs work

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

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

gauravvvv’s picture

Status: Needs work » Needs review

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

nod_’s picture

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

ahsannazir’s picture

StatusFileSize
new101.43 KB
new80.13 KB

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?

smustgrave’s picture

Status: Needs review » Needs work

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

ahsannazir’s picture

Status: Needs work » Needs review
smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Should be good

nod_’s picture

saving credits, MR needs work, comments incoming

  • 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,...
nod_’s picture

Version: 11.x-dev » 10.3.x-dev
Status: Reviewed & tested by the community » Fixed

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.

Status: Fixed » Closed (fixed)

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

xjm’s picture

Amending attribution.