Skip to content

Commit

Permalink
OEL-1160: Add class to link to display correctly on mobile.
Browse files Browse the repository at this point in the history
  • Loading branch information
escuriola committed Mar 3, 2022
1 parent 9062f1f commit 8cef142
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
{% set name_classes = [
'text-decoration-none',
'align-bottom',
light ? 'text-dark': 'text-white',
'bcl-header__site-name',
'mw-100',
] %}
{% set _site_name %}
<a {{ create_attribute().addClass(name_classes).setAttribute('rel', 'Home') }}
Expand Down
6 changes: 3 additions & 3 deletions tests/src/Kernel/SiteBrandingBlockTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function testBlockRendering(): void {

$actual = $crawler->filter('.bcl-header__site-name.site-name');
$this->assertCount(1, $actual);
$link = $actual->filter('.text-white.text-decoration-none.align-bottom');
$link = $actual->filter('.text-decoration-none.align-bottom');
$this->assertCount(1, $link);
$actual = $crawler->filter('.site-logo.d-none.d-lg-inline-block');
$this->assertCount(1, $actual);
Expand All @@ -90,7 +90,7 @@ public function testBlockRendering(): void {

$actual = $crawler->filter('.bcl-header__site-name.site-name');
$this->assertCount(1, $actual);
$link = $actual->filter('.text-dark.text-decoration-none.align-bottom');
$link = $actual->filter('.text-decoration-none.align-bottom');
$this->assertCount(1, $link);
$actual = $crawler->filter('.site-logo.d-none.d-lg-inline-block');
$this->assertCount(1, $actual);
Expand All @@ -111,7 +111,7 @@ public function testBlockRendering(): void {

$actual = $crawler->filter('.bcl-header__site-name.site-name.h5.d-inline-block.d-lg-none');
$this->assertCount(1, $actual);
$link = $actual->filter('.text-dark.text-decoration-none.align-bottom');
$link = $actual->filter('.text-decoration-none.align-bottom');
$this->assertCount(1, $link);
}

Expand Down

0 comments on commit 8cef142

Please sign in to comment.