Problem/Motivation

When using the Field Group module with Paragraphs module with a setting of vertical tabs the dropdown button to select the list is not appearing thereby there is no option to choose other paragraph types other than the default one.

Dropdown Invisible

Steps to reproduce

Install modules:

  • paragraphs
  • field_group
  1. Create a few paragraphs (about 3-4).
  2. Create a content type with a paragraph reference field. Make it so all paragraphs are selectable.
  3. Add a field_group tabs (vertical) and tab.
  4. Put the paragraph field created in step 2 under this tab.
  5. Try to add a page with paragraph 4.

Result: The dropdown button is not visible at all, thereby not able to select other paragraph types other than the defaukt one.
Expected: Be able to select any item in the dropdown.

CommentFileSizeAuthor
#61 drupal-claro_theme_field_group_seems_to_hide_content_of_dropdown-3217868-61.patch2.09 KBzoee-y
#59 1.17claro-fieldgroup.png20.55 KBsourojeetpaul
#59 1.17claro.png40.06 KBsourojeetpaul
#58 drupal-claro-theme-field_group-seems-to-hide-content-of-dropdown-3217868-58.patch2.18 KBv.dovhaliuk
#54 Screenshot from 2023-12-13 13-27-25.png418.29 KBakshayadhav
#53 Screenshot from 2023-12-13 13-16-00.png310.71 KBakshayadhav
#52 Screenshot 2023-12-11 at 7.05.48 PM.png105.46 KBameymudras
#48 Screenshot at Dec 06 17-17-27.png263.52 KBshweta__sharma
#48 after-patch.png285.64 KBshweta__sharma
#48 before-patch.png2.45 MBshweta__sharma
#48 after-patch.png285.64 KBshweta__sharma
#40 ck-toolbar-wrap.patch1.39 MBnienkevanpoppel
#39 after-patch-paragraphs-out-of-container.png160.6 KBacemichael
#37 Screenshot 2023-08-02 at 2.10.01 PM.png160.6 KBacemichael
unhide_overflow_claro_vertical_tab_item.patch423 byteshikkypo
chrome-capture.jpg158.93 KBhikkypo
#3 Screenshot from 2021-06-11 10-54-12.png50.16 KBvikashsoni
#6 unhide_overflow_claro_vertical_tab_item2.patch443 byteshikkypo
#7 unhide_overflow_claro_vertical_tab_item_3217868.7.patch856 bytessakthivel m
#8 3217868-8.patch1.42 KBmaacl
#11 3217868-11.patch2.96 KBgauravvvv
#11 interdiff-3217868-8_11.txt2.25 KBgauravvvv
#13 3217868-12.patch2.82 KBgauravvvv
#16 3217868-16-D10.patch3.63 KBranjith_kumar_k_u
#20 claro-dropbottum-3217868-20.patch2.67 KBarunkumark
#23 before-patch20.png64.97 KBsonam.chaturvedi
#23 after-patch20.png71.63 KBsonam.chaturvedi
#27 Screenshot.PNG25.79 KBgaurav-mathur
#28 account_settings_before.png41.3 KBj_s
#28 account_settings_after.png38.15 KBj_s
#29 claro-vertical_tabs_overflow-3217868.patch2.41 KBj_s
#30 account_settings_test.png41.59 KBj_s
#30 paragraphs_test.png34.14 KBj_s
#31 Before patch - para vertical tabs.png130.46 KBdeepalij
#31 After patch - para vertical tabs.png172.39 KBdeepalij
#32 After-patch.png103.35 KBShubham Sharma 77
#32 Before-patch.png56.62 KBShubham Sharma 77
#36 claro-vertical_tabs_overflow-3217868-36.patch2.1 KBkiwimind

Issue fork drupal-3217868

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

Hikkypo created an issue. See original summary.

hikkypo’s picture

Version: 9.3.x-dev » 8.9.x-dev
vikashsoni’s picture

StatusFileSize
new50.16 KB

@Hikkypo i didn't get any issue regarding this for reference sharing screenshot ....

hikkypo’s picture

@vikashsoni.

If you are able could you check a couple of things. In your screenshot, it is not clear that the dropdown is open. This is the part that is not fully visible (see my screenshot).

Secondly, I see you do not use the tabs and tab field groups. This issue could and I think is only there when you use the tabs.

Just for the sake of full disclosure. This requires 2 field groups.
1 field group of the type tabs. (setting vertical)
1 field group of the type tab (with whatever name you prefer)

When you do this it should show the same behaviour.

indrajithkb’s picture

Version: 8.9.x-dev » 9.3.x-dev
Status: Needs review » Needs work

Hi @Hikkypo i haven't checked the issue yet, but from a quick review of your patch, i can see you have directly done the changes on claro/css/components/vertical-tabs.css this file. Here you have to done your changes on claro/css/components/vertical-tabs.pcss.css then compile the file then add your patch here.
Changing the version to 9.3.x-dev (if the issue is not with 9.3.x-dev then please change the version back) and moving to NW.

Hope this will help you. Thanks.

hikkypo’s picture

I added the change to the pcss.css file. This change is not what we want to add in the long run (at least not without further changes) since it creates some whitespace at the top of the container.

sakthivel m’s picture

Status: Needs work » Needs review
StatusFileSize
new856 bytes

#7 Please review the patch

maacl’s picture

Status: Needs review » Needs work
StatusFileSize
new1.42 KB

As mentioned in #6 this will create a white space on top of the details tab in size of the vertical tabs. The only way around this I found is using flexbox. But I guess this will open a box of a lot of work and testing, as I see those LTR and RTL comments. I attached a simple patch as PoC.

danflanagan8’s picture

I just confirmed this is still an issue on 9.3.x. There are a number of other issues related to vertical tabs in Claro that have been fixed recently, but this one is still present.

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.

gauravvvv’s picture

StatusFileSize
new2.96 KB
new2.25 KB

Re-rolled patch #8, Attached interdiff for same. Please review.

gauravvvv’s picture

Status: Needs work » Needs review
gauravvvv’s picture

StatusFileSize
new2.82 KB

The last submitted patch, 11: 3217868-11.patch, failed testing. View results

kristen pol’s picture

Thanks for the updated patch. It applies cleanly to 9.3 and 9.4 but not to 10 (see below). This needs manual testing for 9.3 and 9.4 and a separate patch for 10.

[drupal-10.0.x-dev/10.0.x] [drupal-10.0.x-dev]$ patch -p1 < 3217868-12.patch 
patching file core/themes/claro/css/base/variables.pcss.css
patching file core/themes/claro/css/components/vertical-tabs.css
Hunk #1 FAILED at 18.
Hunk #2 FAILED at 38.
Hunk #3 FAILED at 306.
Hunk #4 succeeded at 342 (offset -1 lines).
3 out of 4 hunks FAILED -- saving rejects to file core/themes/claro/css/components/vertical-tabs.css.rej
patching file core/themes/claro/css/components/vertical-tabs.pcss.css
Hunk #1 succeeded at 10 (offset -2 lines).
Hunk #2 succeeded at 29 (offset -2 lines).
Hunk #3 succeeded at 276 (offset -2 lines).
Hunk #4 succeeded at 312 (offset -2 lines).
ranjith_kumar_k_u’s picture

StatusFileSize
new3.63 KB

Re-rolled #13 for 10.0.

kristen pol’s picture

Issue summary: View changes

Thanks for the patch for D10.

Needs manual testing for:

  • Drupal 9.3 and 9.4 using patch from #13
  • Drupal 10 using patch from #16

Updated the issue summary based on recent information and cleaned up wording and formatting.

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.

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

arunkumark’s picture

StatusFileSize
new2.67 KB

Re-rolled the patch to work with Drupal 9.5.x Refer the latest patch for Drupa 9.x version. For the D10 refer #16

arunkumark’s picture

Status: Needs review » Needs work
arunkumark’s picture

Status: Needs work » Needs review
sonam.chaturvedi’s picture

StatusFileSize
new64.97 KB
new71.63 KB

Verified and tested patch#20. Patch applied successfully on 9.5.x-dev.

Test Steps:
1. Install modules: paragraphs, field_group and claro (theme)
2. Enable Claro theme
3. Apply patch
4. Create few paragraphs type (about 3-4).
5. Create a content type with a paragraph reference field. Make it so all paragraphs are selectable.
6. Add a field_group tabs (vertical)
7. Add a tab and put the paragraph field created in step 2 under this tab.
8. Goto create content page and try to select paragraph 4.

Test Result: Able to select items in the Paragraph dropdown.

Before Patch:
before patch

After Patch:
after patch

RTBC +1

kristen pol’s picture

Issue tags: -Needs manual testing

@sonam.chaturvedi Thank you for testing!

We still need code review by a frontend developer and check of core gates but...

we do not need any additional testing.

Thanks :)

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.

gaurav-mathur’s picture

Assigned: Unassigned » gaurav-mathur
gaurav-mathur’s picture

Assigned: gaurav-mathur » Unassigned
StatusFileSize
new25.79 KB

I have checked the issue without applying patch in drupal 10.1.x-dev.
Its working fine, looks good for me.
For refer screenshots:-

j_s’s picture

StatusFileSize
new41.3 KB
new38.15 KB

Checking the account settings page, it seems to squish things too much.

j_s’s picture

StatusFileSize
new2.41 KB

This patch on 10.1.x tries a slightly different approach.

j_s’s picture

StatusFileSize
new41.59 KB
new34.14 KB

Tested #29 on account settings and this issue's paragraphs example.

deepalij’s picture

Verified and tested patch #29 on 10.1.x-dev with Claro + field_group.
Patch applied cleanly

The issue got fixed after applying the patch.
Refer to the attached screenshots

Before patch:
before

After patch:
after

Shubham Sharma 77’s picture

StatusFileSize
new103.35 KB
new56.62 KB

Applied patch #29 applied successfully in drupal-10.1.x-dev.
For ref sharing screenshots. Can be moved to RTBC.
RTBC +1

smustgrave’s picture

Status: Needs review » Needs work
Issue tags: +Needs Review Queue Initiative

#29 introduced a new solution but it does not reflect the issue summary.

Also once 1 set of screenshots have been added any additional screenshots of the same patch are considered duplicative work and don't receive credit. So please not more screenshots.

gauravvvv’s picture

Updating attributions

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.

kiwimind’s picture

Having taken a look at the D9 patch above, it seems that there's a simple way of amending the styling without changing much else by removing a couple of things.

Please see attached patch for 9.5.x

acemichael’s picture

StatusFileSize
new160.6 KB

After the patch #36, paragraphs still go out of container.

acemichael’s picture

After patch #36, paragraphs still go out of container.

paragraph issue after patch

acemichael’s picture

StatusFileSize
new160.6 KB
nienkevanpoppel’s picture

StatusFileSize
new1.39 MB

@acemichael your last screenshot is likely caused by a wysiwyg-editor (although it is not visible in your screenshot). This patch for the ckeditor5 will fix the overflow issue. The patch is a minified JS so excuse the readability but I changed the flex-wrap:nowrap, to flex-wrap:wrap for the .ck-toolbar__items.

shweta__sharma’s picture

Status: Needs work » Needs review
smustgrave’s picture

Status: Needs review » Needs work

Don't think we should be patching the ckeditor library.

Also is this reproducible in core?

j_s’s picture

I did testing with #36 using the scenario in the original post as well as testing other areas with vertical tabs (account settings, text format settings, content type settings, media type edit, block layout settings) and with some other modules that use vertical tabs (google_tag, entity_embed text format settings, chosen, slick). It seems to work pretty well.

#37 might be more paragraphs related. It may have to do with paragraphs setting a specific size attribute on text fields which goes beyond the container if the screen size is small. But I'd rather see that paragraph content overflow the container so I can actually see the whole thing rather than it get cut off.

Regarding the patch in #40, if there's a vendor library to fix, those fixes should probably go in the vendor's issue queue instead.

I tried checking for vanilla cases and am unsure if the issue can be replicated without contrib help or custom code. But the issue of vertical tabs hiding overflow does stem from Claro. By comparison, it doesn't look like accordions hide overflow. The issue may not affect vanilla, but it does impact certain contrib modules like in the original scenario.

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

ameymudras’s picture

Status: Needs work » Needs review
smustgrave’s picture

Status: Needs review » Needs work

There are multiple patches and MRs that need to be cleaned up now, solution doesn't fully match what's proposed.

Before/after screenshots should be added to the issue summary.

shweta__sharma’s picture

StatusFileSize
new285.64 KB
new2.45 MB
new285.64 KB
new263.52 KB

I tried to apply some of the patches which are mentioned above on the latest Drupal version 11 but the patch threw some errors.
So I use the recent MR 5376 which has been applied cleanly and the hidden dropdown of a paragraph is now completely visible but the whole paragraph section is going out of the container which needs to be inside the parent container. See -

image

Before Patch

before-patch

After Patch

after-patch

shweta__sharma’s picture

Issue summary: View changes

I think for the paragraph section issue which is going out of the container will fixed in this - https://www.drupal.org/project/drupal/issues/3145188 (similar issue).

Issue summary updated with the latest solution and screenshots.

Thanks!

shweta__sharma’s picture

Status: Needs work » Needs review
smustgrave’s picture

Status: Needs review » Needs work

Moving to NW based on the after screenshot, I see that the content is now breaking out of the container.

ameymudras’s picture

StatusFileSize
new105.46 KB

I tested the solution again on 11.x and I am not able to replicate the issue mentioned in #48. Please find the screenshot attached
screenshot

akshayadhav’s picture

StatusFileSize
new310.71 KB

I tried with recent 2-3 patches along with MR from @ameymudras. The main dropdown issue gets fixed.
issue fixed

I can say that it's not fixing the issue for nested paragraphs.
I can think of 2 solutions:

  1. If we need to fix this issue in Claro theme: increase the available area of the content edit form (i.e. layout-region--node-main) and make it 100%, so that paragraphs can accommodate properly in it. The reason is that nested paragraphs are being placed in <table> tag. These table tags have a width of 100% and which is overflowing outside the available area.

    layout-region--node-main with 100% width

  2. As in most places <table> creates such overflow issues. It will be great to change the structure of nested paragraphs by using other tags than the <table> tag. And restructure it. I know this is a very time-consuming solution that needs to be handled at the Paragraphs module level.

So we should move this issue just for dropdown-related changes, and fix the nested paragraph overflow issue in different issue.
There is already an issue for it.

akshayadhav’s picture

StatusFileSize
new418.29 KB
saschaeggi’s picture

Removing overflow: hidden; will lead to more bugs than solving unfortunately.

The culprint of the issue is that the dropdown is not context aware (it opens towards the bottom instead of the top).
So to fix this more generally as it can also happen on other layouts like in tables we should solve the problem around the dropdown itself.

j_s’s picture

I haven't tried on 11 yet, but on 9 and 10 the issue was more than just the drop downs. It would occur for tables and other fields that get pushed out of view. The fix should be more general to cover all cases, not just a drop-down fix.

bakulahluwalia’s picture

The patch #29 is not working with 10.2.0 release. The code on line 275 is significantly changed.

v.dovhaliuk’s picture

Rerolled patch for the compatibility with 10.2.2 release.

sourojeetpaul’s picture

Hello there,
I've faced the same issue on my D10 instance and looked for the issue and landed upon another issue which seems to be stating this as an issue of Claro theme or the Paragraphs module, but after digging up quite a bit and trying it out with all possible combinations of theme and paragraphs module and field group module, it has come to by notice that the problem is neither with any of the themes nor with the paragraphs module, rather the issue is arising because of field group module.
I've talked about this elaborately there:
https://www.drupal.org/project/field_group/issues/3318730
https://www.drupal.org/project/field_group/issues/3318730#comment-15551915
Also attaching the same screenshots here for quick reference

On my observation the issue starts from the disappearance of the dropdown button itself and some structural changes which is happening because of the field group module. I'm not changing the issue component as there is already an issue with the same, so just adding that as a parent issue and related issue. I think it'll be better if we mark this as a duplicate issue as we're trying to address the same on
https://www.drupal.org/project/field_group/issues/3318730
If you land on any other findings feel free to change accordingly. Though updated the issue summary with my latest findings for a quick overview!

Also not sure how you're reproducing the issue on D11, cause I found that these said modules are not yet ready for D11.

meangreen’s picture

Number #58 worked for me! On Claro, drupal 10.2.6 and with field group module 8.x-3.4 , much thanks! @vdovhaliuk

zoee-y’s picture

Rerolled patch #58 for 10.2.6 release.

Fixed incorrect line in details.pcss.css from patch #58.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.