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.
Comment | File | Size | Author |
---|---|---|---|
#20 | reroll_diff_15-20.txt | 1.4 KB | sahil.goyal |
#20 | 2939985-20.patch | 602 bytes | sahil.goyal |
| |||
#19 | 2939985-nr-bot.txt | 144 bytes | needs-review-queue-bot |
#15 | 2939985-15.patch | 1.17 KB | greggles |
#14 | After patch.png | 163.01 KB | mitthukumawat |
Issue fork drupal-2939985
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:
Comments
Comment #2
SweetchuckComment #4
gregglesJust providing sweetchuck's idea as a patch.
Comment #5
Sweetchuck:-)
But probably it is not a dependency if nobody have noticed its absence so far :-)
Comment #6
gregglesFair 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.
Comment #12
Sakthivel M CreditAttribution: Sakthivel M at QED42 for Drupal India Association commentedPatch Failed
Comment #13
Sakthivel M CreditAttribution: Sakthivel M at QED42 for Drupal India Association commentedComment #14
mitthukumawat CreditAttribution: mitthukumawat as a volunteer and at Zyxware Technologies for Drupal Association commentedI have applied the patch #13 cleanly on drupal 9.3.x-dev and the
core/collapse
library dependency is removed fromseven.libraries.yml
. Now it is replaced with proper dependencycore/drupal.collapse
.Adding screenshot for reference.
Comment #15
gregglesrerolling 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.
Comment #19
needs-review-queue-bot CreditAttribution: needs-review-queue-bot as a volunteer commentedThe 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.
Comment #20
sahil.goyal CreditAttribution: sahil.goyal as a volunteer and at Srijan | A Material+ Company for Drupal India Association commentedRerolled the #15 updated the Non-exists dependency in claro theme for D10.1.x.
Comment #21
sahil.goyal CreditAttribution: sahil.goyal as a volunteer and at Srijan | A Material+ Company for Drupal India Association commentedComment #22
smustgrave CreditAttribution: smustgrave at Mobomo commentedSimple enough fix.
Comment #23
catchThis 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.
Comment #24
smustgrave CreditAttribution: smustgrave at Mobomo commentedFeel 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.
Comment #26
gregglesYes. That sounds good to me to remove it and keep the assert to a followup.
I tried to create this as an MR.
Comment #27
smustgrave CreditAttribution: smustgrave at Mobomo commentedThanks @greggles!
Comment #28
catchTagging for subsystem maintainer review.
Comment #29
longwaveRe #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.
Comment #31
nod_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.Comment #32
larowlanI 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
Comment #33
quietone CreditAttribution: quietone at PreviousNext commentedchange title to indicate what this is fixing.
Comment #35
nod_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!