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

EWPP-3373: Add top padding to main content block. #1299

Merged
merged 1 commit into from
Aug 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion oe_theme.theme
Original file line number Diff line number Diff line change
Expand Up @@ -1665,7 +1665,7 @@ function oe_theme_theme_suggestions_page_alter(array &$suggestions, array $varia
function oe_theme_preprocess_page(array &$variables): void {
$variables['site_name'] = \Drupal::config('system.site')->get('name');
$variables['main_attributes'] = new Attribute([
'class' => ['ecl-u-pb-xl'],
'class' => ['ecl-u-pb-xl ecl-u-pt-m'],
'id' => ['main-content'],
]);
}
Expand Down
3 changes: 3 additions & 0 deletions tests/src/Functional/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ public function testChangeEclBranding(): void {
// the Core template, if the site name and menu are not shown.
$assert_session->elementNotExists('css', 'header.ecl-site-header .ecl-site-header__banner .ecl-container');

// Assert main content block classes.
$assert_session->elementExists('css', 'main.ecl-u-pb-xl.ecl-u-pt-m');

// Visit theme administration page.
$this->drupalGet('/admin/appearance/settings/' . $active_theme);

Expand Down