Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #3476600: Adding a layout setting for controlling space around the layout. #1305

Merged
merged 4 commits into from
Oct 7, 2024

Conversation

alan-cole
Copy link
Collaborator

@alan-cole alan-cole commented Sep 25, 2024

https://www.drupal.org/project/civictheme/issues/3476600

Checklist before requesting a review

  • I have formatted the subject to include ticket number as Issue #123456 by drupal_org_username: Issue title
  • I have added a link to the issue tracker
  • I have provided information in Changed section about WHY something was done if this was not a normal implementation
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works
  • I have run new and existing relevant tests locally with my changes, and they passed
  • I have provided screenshots, where applicable

Changed

  1. When creating a 3 col layout section in page builder, the option to configure vertical spacing (top, bottom, both) has now been added.

Screenshots

Screenshot 2024-09-25 at 3 58 10 pm
Screenshot 2024-09-25 at 3 58 04 pm

@alan-cole alan-cole self-assigned this Sep 25, 2024
@alan-cole alan-cole added the State: Needs review Pull requests needs a review from assigned developers label Sep 25, 2024
@richardgaunt richardgaunt changed the title Added vertical spacing option to page builder form for 3 col section. Issue #3476600: Adding a layout setting for controlling space around the layout' Sep 25, 2024
@richardgaunt
Copy link
Collaborator

@alan-cole I pushed a change moving the setting out of the layout (and fixing prior issue) into a preprocess so we only have templates variables exposed in the template.

10d31be

@alan-cole
Copy link
Collaborator Author

Thanks @richardgaunt - I've updated this as per our discussion to include an 'auto' option for the default "sidebars = top spacing" logic.

alan-cole and others added 3 commits October 3, 2024 17:06
Rather than vertical spacing 'none' provide the logic that sidebars will add a top space; an 'auto' implementation has been added that will automatically assign padding based on spaces. This allows the 'none' option to explicitly set no spacing, as would be expected if choosing a 'none' option.
@alan-cole alan-cole force-pushed the feature/page-layout-3-col-vertical-spacing branch from 1b3ae9a to da83700 Compare October 3, 2024 07:06
@alan-cole alan-cole changed the title Issue #3476600: Adding a layout setting for controlling space around the layout' Issue #3476600: Adding a layout setting for controlling space around the layout. Oct 3, 2024
Copy link
Collaborator

@richardgaunt richardgaunt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works thanks really nice work.

@richardgaunt richardgaunt merged commit 3060e31 into develop Oct 7, 2024
13 checks passed
@richardgaunt richardgaunt deleted the feature/page-layout-3-col-vertical-spacing branch October 7, 2024 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
State: Needs review Pull requests needs a review from assigned developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants