Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Problem/Motivation
In layout builder the default details.html.twig file appears to not work well within layout builder.
Proposed resolution
Maybe have a generic template for layout builder that doesn't include the usa-accordion stuff.
Comment | File | Size | Author |
---|---|---|---|
#3 | Screen Shot 2021-07-09 at 1.53.17 PM.png | 60.96 KB | smustgrave |
Screen Shot 2021-07-08 at 3.30.34 PM.png | 60.54 KB | smustgrave |
Issue fork uswds_base-3222882
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
Comment #3
smustgrave CreditAttribution: smustgrave at Mobomo commentedTried to keep it simple. Doing a check for layout builder if it's there suggest a new template. And that template I copied from seven (removing seven classes). Now it looks much better.
Comment #4
smustgrave CreditAttribution: smustgrave at Mobomo commentedThis is best used with this patch also https://www.drupal.org/project/drupal/issues/3223048#comment-14159865. Currently the filtering hides the link but the li tag has padding styling that doesn't get hidden.
Comment #5
mferanda CreditAttribution: mferanda as a volunteer commentedThe change seems perfect to resolve the issue. However, I'm having trouble seeing this issue myself to test.
Fully admit that I do not use layout builder.
Please provide some steps including if I need some sort of specific content to duplicate the issue.
Thank you
Comment #6
smustgrave CreditAttribution: smustgrave at Mobomo commentedSure.
If you're on a layout builder display and click to "Add a block" the off canvas menu will appear on the right. Currently the sections look a little off and it's not clear they collapse. This change just cleans that up.
Separate issue is when you try and do a search it does filter but the css on the li causes spacing issue. This appears on all themes it appears and that's what this patch does https://www.drupal.org/project/drupal/issues/3223048#comment-14159865
Comment #7
smustgrave CreditAttribution: smustgrave at Mobomo commentedJust following up on this ticket
Comment #8
mferanda CreditAttribution: mferanda as a volunteer commentedReviewing. Thank you for contributing
Comment #9
mferanda CreditAttribution: mferanda as a volunteer commentedOkay, I see it and it looks good. Simple change for increased core functionality / compatibility. Will get this merged in for the next version push (probably the last to get the next version out)
Comment #10
mferanda CreditAttribution: mferanda as a volunteer commentedComment #12
mferanda CreditAttribution: mferanda as a volunteer commentedI just pushed out 2.11-rc1. Will be testing on my end soon to push out 2.11 stable ASAP. Multiple changes but are all pretty simple.
Comment #13
mferanda CreditAttribution: mferanda as a volunteer commentedComment #14
mferanda CreditAttribution: mferanda as a volunteer commented