Skip to content

Commit

Permalink
OEL-761: Upgrade Link and adapt to BCL 0.13.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
escuriola committed Nov 18, 2021
1 parent b34286f commit b05a550
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"drupal/core": "^8.9 || ^9.1",
"drupal/ui_patterns": "^1.0",
"drupal/ui_patterns_settings": "^1.0",
"openeuropa/oe_bootstrap_theme": "1.0.0-alpha2"
"openeuropa/oe_bootstrap_theme": "0.181120211115"
},
"require-dev": {
"composer/installers": "^1.11",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ public function bclFooterLinks(array $context, array $links): array {
'label' => $link['label'],
'path' => $link['href'],
'icon_position' => 'after',
'standalone' => TRUE,
'attributes' => [
'class' => [
'text-decoration-none',
'd-block',
'mb-1',
],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"production": "npm-run-all build:*"
},
"devDependencies": {
"@openeuropa/bcl-builder": "0.9.0",
"@openeuropa/bcl-builder": "0.13.0",
"chokidar-cli": "^3.0.0",
"copyfiles": "2.4.1",
"cross-env": "7.0.3",
Expand Down
5 changes: 3 additions & 2 deletions tests/src/Kernel/FooterBlockTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class FooterBlockTest extends SparqlKernelTestBase {
'components',
'ui_patterns',
'ui_patterns_library',
'ui_patterns_settings',
'user',
'system',
'oe_whitelabel_helper',
Expand Down Expand Up @@ -84,7 +85,7 @@ public function testEcFooterBlockRendering(): void {
$this->assertCount(2, $borderedSections);
$sectionTitles = $crawler->filter('p.fw-bold.mb-2');
$this->assertCount(3, $sectionTitles);
$sectionLinks = $crawler->filter('div.col-12.col-lg-4:nth-child(2) a.text-decoration-none.d-block.mb-1');
$sectionLinks = $crawler->filter('div.col-12.col-lg-4:nth-child(2) a.text-underline-hover.d-block.mb-1');
$this->assertCount(3, $sectionLinks);
}

Expand Down Expand Up @@ -119,7 +120,7 @@ public function testEuFooterBlockRendering(): void {
$this->assertCount(1, $borderedSections);
$sectionTitles = $crawler->filter('p.fw-bold.mb-2');
$this->assertCount(5, $sectionTitles);
$sectionLinks = $crawler->filter('div.col-12.col-lg-4:nth-child(2) a.text-decoration-none.d-block.mb-1');
$sectionLinks = $crawler->filter('div.col-12.col-lg-4:nth-child(2) a.text-underline-hover.d-block.mb-1');
$this->assertCount(10, $sectionLinks);
}

Expand Down

0 comments on commit b05a550

Please sign in to comment.