Skip to content

Commit

Permalink
EWPP-4810: Add the ECL optional ETR styles to available libraries.
Browse files Browse the repository at this point in the history
  • Loading branch information
22Alexandra authored and upchuk committed Oct 30, 2024
1 parent a22e892 commit 0128e43
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
14 changes: 14 additions & 0 deletions oe_theme.libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,17 @@ inpage_navigation:
dependencies:
- core/drupal
- core/jquery

style_ec_etr:
css:
theme:
dist/ec/styles/optional/ecl-ec-easy-to-read.css: { media: screen }
dependencies:
- core/drupal

style_eu_etr:
css:
theme:
dist/eu/styles/optional/ecl-eu-easy-to-read.css: { media: screen }
dependencies:
- core/drupal
4 changes: 4 additions & 0 deletions tests/src/Functional/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ public function testChangeComponentLibrary(): void {

// Assert that we don't load rtl styling.
$this->assertLinkNotContainsHref('/oe_theme/dist/eu/styles/optional/ecl-rtl.css');
// Assert that we don't load etr styling.
$this->assertLinkNotContainsHref('/oe_theme/dist/eu/styles/optional/ecl-eu-easy-to-read.css');

// Assert that the favicon provided by the theme is being used.
$this->assertSession()->responseContains("/$active_theme/images/favicons/eu/favicon.ico");
Expand Down Expand Up @@ -167,6 +169,8 @@ public function testChangeComponentLibrary(): void {

// Assert that we don't load rtl styling.
$this->assertLinkNotContainsHref('/oe_theme/dist/ec/styles/optional/ecl-rtl.css');
// Assert that we don't load etr styling.
$this->assertLinkNotContainsHref('/oe_theme/dist/ec/styles/optional/ecl-ec-easy-to-read.css');

// Assert that the favicon provided by the theme is being used.
$this->assertSession()->responseContains("/$active_theme/images/favicons/ec/favicon.ico");
Expand Down

0 comments on commit 0128e43

Please sign in to comment.