The seven/drupal.nav-tabs and seven/drupal.responsive-detail libraries are depend on the core/collapse library, but it is not exists. See file: core/themes/seven/seven.libraries.yml

There is a core/drupal.collapse library definition in the core/core.libraries.yml file. Probably that library should be marked as dependency.

It seems the same problem affects the claro theme.

Issue fork drupal-2939985

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Sweetchuck created an issue. See original summary.

Sweetchuck’s picture

Issue summary: View changes

Version: 8.6.x-dev » 8.7.x-dev

Drupal 8.6.0-alpha1 will be released the week of July 16, 2018, which means new developments and disruptive changes should now be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

greggles’s picture

Just providing sweetchuck's idea as a patch.

Sweetchuck’s picture

:-)
But probably it is not a dependency if nobody have noticed its absence so far :-)

greggles’s picture

Fair point.

I was running into a bug where the node tabs in desktop safari were collapsing themselves (the way they do on a mobile device). And...it's only happening on one machine and nobody else's. Digging through the issue queue this seemed like maybe a potential cause so I wanted to get a patch to test it out. Turns out this didn't fix *that* problem.

The code was introduced in #665790: Redesign the status report page and some subsequent work in #2854624: Details and accordion update based on Seven Style Guide also seems to leverage collapse.js from core.

Looking at docroot/core/themes/stable/templates/admin/status-report-grouped.html.twig it is attaching the library (as are several other files).

I think the dependency is real. I'm not sure why it hasn't been noticed.

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Sakthivel M’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll

Patch Failed

Sakthivel M’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
FileSize
614 bytes
mitthukumawat’s picture

FileSize
134.84 KB
163.01 KB

I have applied the patch #13 cleanly on drupal 9.3.x-dev and the core/collapse library dependency is removed from seven.libraries.yml. Now it is replaced with proper dependency core/drupal.collapse.
Adding screenshot for reference.

greggles’s picture

Title: Non-exists dependency in seven.libraries.yml core/collapse » Non-exists dependency core/collapse in seven.libraries.yml and claro.libraries.yml
Component: Seven theme » Claro theme
Issue summary: View changes
FileSize
1.17 KB

rerolling for Drupal 9 and I noticed that also affects claro so I made the change there as well. Also moving over there so they are aware.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

needs-review-queue-bot’s picture

Status: Needs review » Needs work
FileSize
144 bytes

The Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

sahil.goyal’s picture

Rerolled the #15 updated the Non-exists dependency in claro theme for D10.1.x.

sahil.goyal’s picture

Status: Needs work » Needs review
smustgrave’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +Needs Review Queue Initiative

Simple enough fix.

catch’s picture

Status: Reviewed & tested by the community » Needs review
Issue tags: +Needs manual testing

This issue has been open for five years. Do we actually have a bug in Claro that's been there for five years, or does the library not really need this dependency at all? Marking for manual testing. I don't think we need automated test coverage here because it's just a one line change, but would be good to know if there's a real problem that this fixes.

Also think we should look at issuing assert() errors when library definitions have missing dependencies.

smustgrave’s picture

Status: Needs review » Needs work
Issue tags: +Needs followup

Feel like there was a ticket for checking for missing libraries but can't find it right now.

Think you are right if this hasn't caused an issue in 5 years then it's a library not needed by claro and should just be removed.

greggles’s picture

Status: Needs work » Needs review

Yes. That sounds good to me to remove it and keep the assert to a followup.

I tried to create this as an MR.

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Thanks @greggles!

catch’s picture

Tagging for subsystem maintainer review.

longwave’s picture

Re #23 and #24 there is #2747339: Assert if a library definition is not valid / as expected which doesn't exactly cover this issue but could be expanded to do so, I think.

nod_ made their first commit to this issue’s fork.

nod_’s picture

So nav tabs don't use details so the dependency is wrong

And I could not find any code using/including the drupal.responsive-detail library, so no harm removing the dependency.

larowlan’s picture

I think that fix is fine for D10, but for D9 wasn't it required as a polyfill for the details element for IE11?

Still has the needs subsystem maintainer review tag, so will ping in slack

quietone’s picture

Title: Non-exists dependency core/collapse in seven.libraries.yml and claro.libraries.yml » Remove non-existent dependency core/collapse in seven.libraries.yml and claro.libraries.yml

change title to indicate what this is fixing.

  • nod_ committed dc0c8940 on 10.1.x
    Issue #2939985 by greggles, sahil.goyal, Sakthivel M: Remove non-...
nod_’s picture

Title: Remove non-existent dependency core/collapse in seven.libraries.yml and claro.libraries.yml » Remove non-existent dependency core/collapse in claro.libraries.yml
Status: Reviewed & tested by the community » Fixed
Issue tags: -Needs manual testing, -Needs followup
Related issues: +#3353612: Remove or fix claro/drupal.responsive-detail

I don't think it's valuable to spend more time on it here, committing as is and added a followup #3353612: Remove or fix claro/drupal.responsive-detail to figure out the actual place it may be useful. nav tabs definitely don't need this dependency.

As far as backport goes, since it doesn't look like anyone really noticed I say leave it as-is?

Removing seven from the title since it's only claro now :) (but the commit message went out with seven…)

Committed dc0c894 and pushed to 10.1.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.