diff --git a/core/core.libraries.yml b/core/core.libraries.yml index 5a4d983ad593dc3bcc3a7658cc408ad64cb8121e..9d92bed325f7c696e08eacb9ebd42650a274270b 100644 --- a/core/core.libraries.yml +++ b/core/core.libraries.yml @@ -632,6 +632,21 @@ drupal.progress: - core/jquery - core/drupalSettings +drupal.reset-appearance: + version: VERSION + css: + component: + misc/components/reset-appearance.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/reset-appearance.module.css: + base: misc/components/reset-appearance.module.css + drupal.states: version: VERSION js: diff --git a/core/modules/system/css/components/reset-appearance.module.css b/core/misc/components/reset-appearance.module.css similarity index 100% rename from core/modules/system/css/components/reset-appearance.module.css rename to core/misc/components/reset-appearance.module.css diff --git a/core/modules/system/system.libraries.yml b/core/modules/system/system.libraries.yml index 3f3c00951be0a2a8b3881e4a71be6dd439f77d06..1d05edc15aa8db0881de80ed591d61182a6c6a0c 100644 --- a/core/modules/system/system.libraries.yml +++ b/core/modules/system/system.libraries.yml @@ -13,7 +13,6 @@ base: css/components/js.module.css: { weight: -10 } css/components/nowrap.module.css: { weight: -10 } css/components/position-container.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 } diff --git a/core/themes/claro/templates/navigation/menu-local-task.html.twig b/core/themes/claro/templates/navigation/menu-local-task.html.twig index b135a5ddcf3b5d04d5c353c7dfcd8dec2c346e68..66e6ebf55f719ba74c57d2822c229f9da6ddb29f 100644 --- a/core/themes/claro/templates/navigation/menu-local-task.html.twig +++ b/core/themes/claro/templates/navigation/menu-local-task.html.twig @@ -26,6 +26,7 @@ <li{{ attributes.addClass(classes) }}> {{ link }} {% if is_active and level == 'primary' %} + {{ attach_library('core/reset-appearance') }} <button class="reset-appearance tabs__trigger" type="button" aria-label="{{ 'Tabs display toggle'|t }}" data-drupal-nav-tabs-trigger> {% include "@claro/../images/src/hamburger-menu.svg" %} </button> diff --git a/core/themes/stable9/stable9.info.yml b/core/themes/stable9/stable9.info.yml index 745ceffab0409434447cb7d87129cc8758b9f989..67dca8394422fc36e9c959d78f689bb504fbcd18 100644 --- a/core/themes/stable9/stable9.info.yml +++ b/core/themes/stable9/stable9.info.yml @@ -89,6 +89,9 @@ libraries-override: component: misc/vertical-tabs.css: css/core/vertical-tabs.css + core/reset-appearance: + css/components/reset-appearance.module.css: css/system/components/reset-appearance.module.css + # Load version 3.0.3 of normalize.css for backwards compatibility. core/normalize: stable9/normalize @@ -229,7 +232,6 @@ libraries-override: css/components/js.module.css: css/system/components/js.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/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 system/admin: