Skip to content

Commit

Permalink
Update blocks to use the new LocalGov Base theme (#164)
Browse files Browse the repository at this point in the history
* Update all block config to use localgov_base theme (localgovdrupal/localgov#288)

* Use localgov_base theme in tests

* Test JS Hide with stark for compatibility.

Co-authored-by: ekes <ekes@iskra.net>
  • Loading branch information
stephen-cox and ekes authored Sep 1, 2021
1 parent 26704aa commit 9f4a61c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config/optional/block.block.localgov_alert_banner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ dependencies:
module:
- localgov_alert_banner
theme:
- localgov_theme
- localgov_base
id: localgov_alert_banner
theme: localgov_theme
theme: localgov_base
region: banner
weight: 0
provider: null
Expand Down
4 changes: 3 additions & 1 deletion tests/src/FunctionalJavascript/AlertBannerHideTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class AlertBannerHideTest extends WebDriverTestBase {
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'localgov_theme';
protected $defaultTheme = 'stark';

/**
* {@inheritdoc}
Expand All @@ -30,6 +30,8 @@ class AlertBannerHideTest extends WebDriverTestBase {
* Test alert banner hide link.
*/
public function testAlertBannerHide() {
$this->drupalPlaceBlock('localgov_alert_banner_block');

// Set up an alert banner.
$title = $this->randomMachineName(8);
$alert_message = 'Alert message: ' . $this->randomMachineName(16);
Expand Down

0 comments on commit 9f4a61c

Please sign in to comment.