Needs work
Project:
Bartik
Version:
1.0.2
Component:
Look and Feel
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Jun 2019 at 08:08 UTC
Updated:
29 Nov 2023 at 13:46 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
thamasComment #3
tanmaykNot just umami demo, but this can be seen with Bartik theme.
We should update the styles in Layout Builder to add padding or margin between columns.
Comment #4
tanmaykChanging the title to make it more generic.
Comment #5
dyannenovaEach theme needs to set its own CSS for this, otherwise Layout Builder will be making assumptions about column padding that would need to be overwritten in every theme.
Comment #6
johnwebdev commented#5 +1
It should be done in themes.
Comment #7
tanmaykYes, agreed.
Comment #8
thamasSo should we create separate issues for themes?
Comment #9
tanmaykAfter giving it a bit of thought, why shouldn't we add default spacing from layout builder? If we give the spacing from a theme, each & every theme (including contributed too), have to take care of it. I am sure all themes would need that space.
Instead, we should give some ideal spacing from layout builder & then any theme can override it if needed. Thoughts?
Comment #10
thamas@tanmayk While adding space from layout builder could be a quick win, we can't set an "ideal spacing" as the ideal spacing depends on the ratios (font sizes, component sizes, other spacings) of the theme. (As mentioned by @DyanneNova in #5)
So I think as well we better set the spacing in each core theme separately and these can be examples for contrib and custom themes too.
So we may keep this as a meta issue and create separate related issues for each core theme. Thoughts?
Comment #11
tanmaykThat makes sense @thamas. Thanks.
Comment #12
smazI would have thought we should have a 'sensible' default (as much as possible) so that rather than every single theme having to specify padding/margin to fix the issue, some will have to to make it more suitable for their theme. If doing it per theme means that people have to specify it for their theme, that's not much different than having to override a default.
I would guess though that this should be done in the Stable core theme, which is the default base theme, rather than in the layout builder module so that if you didn't have a base theme/didn't want the default styles, you wouldn't have to have them?
For setting the margin/padding can we use em so that it scales with default font sizes etc., like we did for the padding on the add link here? https://www.drupal.org/project/drupal/issues/3050225
Comment #13
thamasI'm not sure if we may change Stable as it has to be "stable". (I do not know if adding plus thing is possible without changing earlier code…)
Comment #17
djsagar commentedHi all,
For space between columns of Layout Builder i created patch which is resolved spacing issue between columns.
Please review and give feedback.
Thanks!
Comment #18
kapilv commentedComment #19
abhijith s commentedFixed the custom command issue in patch #18
Comment #20
djsagar commentedI uploaded patch with interdiff.
Comment #22
djsagar commentedrolling up patch interdiff were added on #20.
Comment #23
gauravvvv commentedThis issue has been addressed in 9.2
Adding screenshot of fresh Drupal 9.2 install.
No more reproducible in D9.2
Comment #25
leisurman commentedAs mentioned to do in #5. Add the styles from patch #22 to your custom theme or upgrade to Drupal core 9.2.0. Is that correct?
Comment #26
leisurman commentedIt works for me. Thank you.
Comment #27
leisurman commentedI gues we should also add a style for .layout__region layout__region--fourth
Comment #28
tim.plunkettChanging this to a support request for now. If there's a concrete proposal to change each of the non-base themes that ship with core, that's fine. But per #5 we won't be changing this in the base themes.
Comment #32
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or 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.
Comment #34
djsagar commentedHello everyone,
As Bartik has been removed from the Drupal core, I suggest that we either close this issue or retest using a different theme.
Thanks!