Skip to content

Commit

Permalink
Merge pull request #18 from CuBoulder/issue/475
Browse files Browse the repository at this point in the history
Update LayoutBase.php
  • Loading branch information
jcsparks authored and web-flow committed Aug 31, 2023
2 parents 13133bc + 98821f5 commit 0ff9a8d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- ### Update LayoutBase.php
Added an else statement to apply padding to section even when background images aren't used

Closes #17
---

- ### Issue/471
Updated edge-to-edge option for single column layouts
Makes hero units, video reveals, and sliders work as full width sections.
Expand Down
7 changes: 7 additions & 0 deletions src/Plugin/Layout/LayoutBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,13 @@ public function submitConfigurationForm(array &$form, FormStateInterface $form_s

}
}
else {
$media_image_styles = [
'padding:' . $top_padding . ' ' . $right_padding . ' ' . $bottom_padding . ' ' . $left_padding,
];

$new_styles = implode(' ', $media_image_styles);
}


$this->configuration['background_color'] = $values['background']['background_color'];
Expand Down

0 comments on commit 0ff9a8d

Please sign in to comment.