Looks like follow up work is neede because there are still instances of Claro
(main)$ git grep -ni claro | grep core/themes/default_admin
core/themes/default_admin/css/theme/accent.css:41:[data-admin-focus="claro"] {
core/themes/default_admin/css/theme/accent.pcss.css:37:[data-admin-focus="claro"] {
core/themes/default_admin/images/core/README.md:3:should be removed before moving Claro to Drupal core. See
core/themes/default_admin/images/core/README.md:4:https://www.drupal.org/project/claro/issues/3045216 for details.
core/themes/default_admin/src/Settings.php:295: 'claro' => $this->t('Legacy green'),
core/themes/default_admin/tests/fixtures/implementation-name-allowlist.json:14: "pattern": "'claro' =>",
core/themes/default_admin/tests/fixtures/implementation-name-allowlist.json:19: "pattern": "data-admin-focus=\"claro\"",
core/themes/default_admin/tests/fixtures/implementation-name-allowlist.json:24: "pattern": "data-admin-focus=\"claro\"",
core/themes/default_admin/tests/fixtures/implementation-name-allowlist.json:49: "pattern": "Claro",
core/themes/default_admin/tests/fixtures/implementation-name-allowlist.json:54: "pattern": "project/claro",
core/themes/default_admin/tests/fixtures/implementation-name-allowlist.json:104: "pattern": "(?:gin|claro)",
core/themes/default_admin/tests/fixtures/implementation-name-allowlist.json:109: "pattern": "(?:Gin|Claro)",
core/themes/default_admin/tests/src/Unit/ImplementationNameTest.php:145: $name_pattern = '/(?:\b(?:gin|Gin|claro|Claro)\b'
core/themes/default_admin/tests/src/Unit/ImplementationNameTest.php:146: . '|(?<![A-Za-z])(?:gin|claro)(?=[._-]|[A-Z])'
core/themes/default_admin/tests/src/Unit/ImplementationNameTest.php:147: . '|(?<![A-Za-z])(?:Gin|Claro)(?=[A-Z]))/';
core/themes/default_admin/tests/src/Unit/ImplementationNameTest.php:166: if (preg_match('/(?:gin|claro)/i', $file->getFilename())) {
core/themes/default_admin/css/theme/accent.pcss.css - Should the be data-accent.pcss.css
core/themes/default_admin/images/core/README.md - This states the core/themes/default_admin/images/core can be deleted. Is that a followup?
And also instances of gin.
(main)$ grep -iwlR claro core/themes/default_admin
core/themes/default_admin/tests/fixtures/implementation-name-allowlist.json
core/themes/default_admin/tests/src/Unit/ImplementationNameTest.php
core/themes/default_admin/css/theme/accent.pcss.css
core/themes/default_admin/css/theme/accent.css
core/themes/default_admin/src/Settings.php
core/themes/default_admin/images/core/README.md
(main)$ grep -iwlR gin core/themes/default_admin
core/themes/default_admin/tests/fixtures/implementation-name-allowlist.json
core/themes/default_admin/tests/src/Unit/ImplementationNameTest.php
core/themes/default_admin/tests/src/FunctionalJavascript/LegacyStorageTest.php
core/themes/default_admin/tests/src/Functional/AdminTest.php
core/themes/default_admin/migration/js/init.js
core/themes/default_admin/src/Hook/FormHooks.php
core/themes/default_admin/src/Hook/ThemeHooks.php
core/themes/default_admin/src/Settings.php
core/themes/default_admin/config/install/default_admin.settings.yml
core/themes/default_admin/logo.png
core/themes/default_admin/font/inter.woff2
Comments
Comment #2
godotislateComment #3
godotislateI think we can exclude
implementation-name-allowlist.jsonandImplementationNameTest.php, because those are for testing explicitly that there aren't files with gin or claro in the name.Comment #6
gábor hojtsyProposed an MR. Only one image needed to be kept in Default Admin which I moved elsewhere, the other ones I found equivalent images.
LLM was used to help me track these down.
Comment #7
gábor hojtsyComment #8
jurgenhaasI've looked through all the changes and they all look correct. Setting to RTBC.
Comment #9
mherchelRan visual regression tests. Looks great! Committing in a sec.
Comment #10
mherchelGetting some failures in precommit hook tests. Merging main and will wait for tests to pass.
Comment #11
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #13
mherchelCommitted and pushed 9070164623d to main. Thanks!
Looks like the issue was with my local Node version.
Comment #16
smustgrave commentedAll green backport.
Comment #18
godotislateCompared 11.x and main diffs and they look the same.
Committed b8829bf and pushed to 11.x. Thanks!
Comment #22
godotislateSorry, forgot a few files in the first 11.x commit, so I reverted, then re-committed everything.
Committed 3156715 and pushed to 11.x. Thanks!