Verified Commit 22e81ccd authored by Alex Pott's avatar Alex Pott
Browse files

task: #3619507 Remove CSS weights from system.libraries.yml

By: catch
By: dcam
(cherry picked from commit 199c04df)
parent 2c5f32c5
Loading
Loading
Loading
Loading
Loading
+27 −11
Changes for core/modules/system/system.libraries.yml: 27 added lines, 11 removed lines.
Original line number Diff line number Diff line
@@ -3,13 +3,29 @@ base:
    css: 'global'
  version: VERSION
  css:
    # Adjust the weights to load these early.
    base:
      css/components/align.module.css: {}
      css/components/container-inline.module.css: {}
      css/components/clearfix.module.css: {}
      css/components/hidden.module.css: {}
      css/components/js.module.css: {}
  moved_files:
    system/base:
      deprecation_version: 11.5.0
      removed_version: 13.0.0
      deprecation_link: https://www.drupal.org/project/drupal/issues/3619507
      css:
        component:
      css/components/align.module.css: { weight: -10 }
      css/components/container-inline.module.css: { weight: -10 }
      css/components/clearfix.module.css: { weight: -10 }
      css/components/hidden.module.css: { weight: -10 }
      css/components/js.module.css: { weight: -10 }
          css/components/align.module.css:
            base: css/components/align.module.css
          css/components/container-inline.module.css:
            base: css/components/container-inline.module.css
          css/components/clearfix.module.css:
            base: css/components/clearfix.module.css
          css/components/hidden.module.css:
            base: css/components/hidden.module.css
          css/components/js.module.css:
            base: css/components/js.module.css

admin:
  version: VERSION
@@ -23,7 +39,7 @@ maintenance:
  version: VERSION
  css:
    theme:
      css/system.maintenance.css: { weight: -10 }
      css/system.maintenance.css: {}
  dependencies:
    - system/base
    - system/admin
@@ -32,9 +48,9 @@ status.report:
  version: VERSION
  css:
    component:
      css/components/system-status-counter.css: { weight: -10 }
      css/components/system-status-report-counters.css: { weight: -10 }
      css/components/system-status-report-general-info.css: { weight: -10 }
      css/components/system-status-counter.css: {}
      css/components/system-status-report-counters.css: {}
      css/components/system-status-report-general-info.css: {}

drupal.system:
  version: VERSION
@@ -61,7 +77,7 @@ drupal.system.admin_compact:
  version: VERSION
  css:
    theme:
      css/system.admin_compact.css: { weight: -10 }
      css/system.admin_compact.css: {}
  js:
    js/system.admin_compact.js: {}
  dependencies:
+1 −1
Changes for core/modules/system/tests/modules/unversioned_assets_test/src/Hook/UnversionedAssetsTestHooks.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ public function libraryInfoAlter(&$libraries, $extension): void {
      // Remove the version and provide an additional CSS file we can alter the
      // contents of .
      unset($libraries['base']['version']);
      $libraries['base']['css']['component']['public://test.css'] = ['weight' => -10];
      $libraries['base']['css']['base']['public://test.css'] = ['weight' => -10];
    }
  }

+1 −1
Changes for core/modules/system/tests/themes/test_theme/test_theme.info.yml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ libraries-override:
        /core/modules/system/tests/themes/test_base_theme/css/components/dialog.css: false
  system/base:
    css:
      component:
      base:
        css/components/js.module.css: false
  # It works for JS as well.
  core/drupal.batch: