Skip to content
Snippets Groups Projects
Verified Commit f6d07a14 authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3512194 by catch, smustgrave, nod_: Move resize CSS into its own library

parent d15e2ea5
Branches
Tags
4 merge requests!5423Draft: Resolve #3329907 "Test2",!3478Issue #3337882: Deleted menus are not removed from content type config,!2964Issue #2865710 : Dependencies from only one instance of a widget are used in display modes,!579Issue #2230909: Simple decimals fail to pass validation
Pipeline #453900 passed with warnings
Pipeline: drupal

#453905

    ...@@ -647,6 +647,21 @@ drupal.progress: ...@@ -647,6 +647,21 @@ drupal.progress:
    - core/jquery - core/jquery
    - core/drupalSettings - core/drupalSettings
    drupal.textarea-resize:
    version: VERSION
    css:
    component:
    misc/components/resize.module.css: { weight: -10 }
    moved_files:
    system/base:
    deprecation_version: 11.2.0
    removed_version: 12.0.0
    deprecation_link: https://www.drupal.org/node/3432346
    css:
    component:
    css/components/resize.module.css:
    component: misc/components/resize.module.css
    drupal.states: drupal.states:
    version: VERSION version: VERSION
    js: js:
    ......
    ...@@ -44,12 +44,21 @@ public function getInfo() { ...@@ -44,12 +44,21 @@ public function getInfo() {
    ], ],
    '#pre_render' => [ '#pre_render' => [
    [static::class, 'preRenderGroup'], [static::class, 'preRenderGroup'],
    [static::class, 'preRenderAttachments'],
    ], ],
    '#theme' => 'textarea', '#theme' => 'textarea',
    '#theme_wrappers' => ['form_element'], '#theme_wrappers' => ['form_element'],
    ]; ];
    } }
    /**
    * Adds the textarea resize library.
    */
    public static function preRenderAttachments($element): array {
    $element['#attached']['library'][] = 'core/drupal.textarea-resize';
    return $element;
    }
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    ......
    ...@@ -93,7 +93,7 @@ public function testLogin(): void { ...@@ -93,7 +93,7 @@ public function testLogin(): void {
    'ScriptCount' => 3, 'ScriptCount' => 3,
    'ScriptBytes' => 215500, 'ScriptBytes' => 215500,
    'StylesheetCount' => 1, 'StylesheetCount' => 1,
    'StylesheetBytes' => 46300, 'StylesheetBytes' => 46000,
    ]; ];
    $this->assertMetrics($expected, $performance_data); $this->assertMetrics($expected, $performance_data);
    ......
    ...@@ -13,7 +13,6 @@ base: ...@@ -13,7 +13,6 @@ base:
    css/components/nowrap.module.css: { weight: -10 } css/components/nowrap.module.css: { weight: -10 }
    css/components/position-container.module.css: { weight: -10 } css/components/position-container.module.css: { weight: -10 }
    css/components/reset-appearance.module.css: { weight: -10 } css/components/reset-appearance.module.css: { weight: -10 }
    css/components/resize.module.css: { weight: -10 }
    css/components/tablesort.module.css: { weight: -10 } css/components/tablesort.module.css: { weight: -10 }
    admin: admin:
    ......
    ...@@ -30,7 +30,7 @@ public function testFrontAndRecipesPages(): void { ...@@ -30,7 +30,7 @@ public function testFrontAndRecipesPages(): void {
    'ScriptCount' => 1, 'ScriptCount' => 1,
    'ScriptBytes' => 11700, 'ScriptBytes' => 11700,
    'StylesheetCount' => 6, 'StylesheetCount' => 6,
    'StylesheetBytes' => 121000, 'StylesheetBytes' => 120500,
    ]; ];
    $this->assertMetrics($expected, $performance_data); $this->assertMetrics($expected, $performance_data);
    } }
    ......
    ...@@ -191,7 +191,7 @@ protected function testAnonymous(): void { ...@@ -191,7 +191,7 @@ protected function testAnonymous(): void {
    ['config:user.role.anonymous'], ['config:user.role.anonymous'],
    ], ],
    'StylesheetCount' => 1, 'StylesheetCount' => 1,
    'StylesheetBytes' => 2250, 'StylesheetBytes' => 2100,
    ]; ];
    $this->assertMetrics($expected, $performance_data); $this->assertMetrics($expected, $performance_data);
    $expected_default_cache_cids = [ $expected_default_cache_cids = [
    ...@@ -275,7 +275,7 @@ protected function testAnonymous(): void { ...@@ -275,7 +275,7 @@ protected function testAnonymous(): void {
    ['config:user.role.anonymous'], ['config:user.role.anonymous'],
    ], ],
    'StylesheetCount' => 1, 'StylesheetCount' => 1,
    'StylesheetBytes' => 2250, 'StylesheetBytes' => 2100,
    ]; ];
    $this->assertMetrics($expected, $performance_data); $this->assertMetrics($expected, $performance_data);
    ...@@ -312,7 +312,7 @@ protected function testAnonymous(): void { ...@@ -312,7 +312,7 @@ protected function testAnonymous(): void {
    'CacheTagInvalidationCount' => 0, 'CacheTagInvalidationCount' => 0,
    'CacheTagLookupQueryCount' => 13, 'CacheTagLookupQueryCount' => 13,
    'StylesheetCount' => 1, 'StylesheetCount' => 1,
    'StylesheetBytes' => 1950, 'StylesheetBytes' => 1800,
    ]; ];
    $this->assertMetrics($expected, $performance_data); $this->assertMetrics($expected, $performance_data);
    } }
    ......
    ...@@ -78,6 +78,11 @@ libraries-override: ...@@ -78,6 +78,11 @@ libraries-override:
    component: component:
    misc/components/progress.module.css: css/core/components/progress.module.css misc/components/progress.module.css: css/core/components/progress.module.css
    core/drupal.textarea-resize:
    css:
    component:
    misc/components/resize.module.css: css/core/components/resize.module.css
    core/drupal.tabledrag: core/drupal.tabledrag:
    css: css:
    component: component:
    ...@@ -234,7 +239,6 @@ libraries-override: ...@@ -234,7 +239,6 @@ libraries-override:
    css/components/nowrap.module.css: css/system/components/nowrap.module.css css/components/nowrap.module.css: css/system/components/nowrap.module.css
    css/components/position-container.module.css: css/system/components/position-container.module.css css/components/position-container.module.css: css/system/components/position-container.module.css
    css/components/reset-appearance.module.css: css/system/components/reset-appearance.module.css css/components/reset-appearance.module.css: css/system/components/reset-appearance.module.css
    css/components/resize.module.css: css/system/components/resize.module.css
    css/components/tablesort.module.css: css/system/components/tablesort.module.css css/components/tablesort.module.css: css/system/components/tablesort.module.css
    system/admin: system/admin:
    css: css:
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment