Skip to content

Commit

Permalink
EWPP-5096: Add ECL color modes to oe_theme available libraries.
Browse files Browse the repository at this point in the history
  • Loading branch information
22Alexandra committed Feb 4, 2025
1 parent 5eecb63 commit 2bfd448
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions oe_theme.libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,10 @@ style_eu_etr:
dist/eu/styles/optional/ecl-eu-easy-to-read.css: { media: screen }
dependencies:
- core/drupal

style_ec_color_modes:
css:
theme:
dist/ec/styles/ecl-ec-color-modes.css: { media: screen }
dependencies:
- core/drupal
3 changes: 3 additions & 0 deletions tests/src/Functional/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ public function testDefaultLibraryLoading(): void {
// Assert that rtl styling is not loaded.
$this->assertLinkNotContainsHref('/oe_theme/dist/ec/styles/optional/ecl-rtl.css');

// Assert that color modes styling is not loaded.
$this->assertLinkNotContainsHref('/oe_theme/dist/ec/styles/ecl-ec-color-modes.css');

// Assert that we do not load the EU component library by default.
$this->assertLinkNotContainsHref('/oe_theme/dist/eu/styles/ecl-eu.css');
$this->assertLinkNotContainsHref('/oe_theme/dist/eu/styles/ecl-eu-print.css');
Expand Down

0 comments on commit 2bfd448

Please sign in to comment.