Unverified Commit 5ee49cc4 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3512285 by catch, dcam, smustgrave, longwave, alexpott: Split...

Issue #3512285 by catch, dcam, smustgrave, longwave, alexpott: Split item-list.module.css out to its own library
parent 42b74814
Loading
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -632,6 +632,21 @@ drupal.htmx:
      theme_token: null
    ajaxTrustedUrl: {}

drupal.item-list:
  version: VERSION
  css:
    component:
      misc/components/item-list.module.css: { weight: -10 }
  moved_files:
    system/base:
      deprecation_version: 11.3.0
      removed_version: 12.0.0
      deprecation_link: https://www.drupal.org/node/3530832
      css:
        component:
          css/components/item-list.module.css:
            base: misc/components/item-list.module.css

drupal.machine-name:
  version: VERSION
  js:
+1 −0
Original line number Diff line number Diff line
@@ -803,6 +803,7 @@ function template_preprocess_table(&$variables): void {
 */
function template_preprocess_item_list(&$variables): void {
  $variables['wrapper_attributes'] = new Attribute($variables['wrapper_attributes']);
  $variables['#attached']['library'][] = 'core/drupal.item-list';
  foreach ($variables['items'] as &$item) {
    $attributes = [];
    // If the item value is an array, then it is a render array.
+0 −1
Original line number Diff line number Diff line
@@ -7,7 +7,6 @@ base:
      css/components/container-inline.module.css: { weight: -10 }
      css/components/clearfix.module.css: { weight: -10 }
      css/components/hidden.module.css: { weight: -10 }
      css/components/item-list.module.css: { weight: -10 }
      css/components/js.module.css: { weight: -10 }
      css/components/reset-appearance.module.css: { weight: -10 }

+3 −3
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ public function testFrontAndRecipesPages(): void {
      'ScriptCount' => 1,
      'ScriptBytes' => 11700,
      'StylesheetCount' => 6,
      'StylesheetBytes' => 119250,
      'StylesheetBytes' => 118700,
    ];
    $this->assertMetrics($expected, $performance_data);
  }
@@ -50,7 +50,7 @@ public function testFrontAndRecipesPagesAuthenticated(): void {
      'ScriptCount' => 3,
      'ScriptBytes' => 170500,
      'StylesheetCount' => 5,
      'StylesheetBytes' => 85600,
      'StylesheetBytes' => 85000,
    ];
    $this->assertMetrics($expected, $performance_data);
  }
@@ -71,7 +71,7 @@ public function testFrontAndRecipesPagesEditor(): void {
      'ScriptCount' => 5,
      'ScriptBytes' => 335637,
      'StylesheetCount' => 5,
      'StylesheetBytes' => 205700,
      'StylesheetBytes' => 205100,
    ];
    $this->assertMetrics($expected, $performance_data);
  }
Loading