Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EWPP-5096: Add ECL color modes to oe_theme available libraries. #1544

Merged
merged 1 commit into from
Feb 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
EWPP-5096: Add ECL color modes to oe_theme available libraries.
  • Loading branch information
22Alexandra authored and upchuk committed Feb 8, 2025
commit 3ca600fec0d86887640f9eb8723c73e152a1a2c8
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