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.
- Status changed to Needs review
almost 2 years ago 11:20pm 1 February 2023 - π¨π¦Canada gapple
Did a rebase & squash, since merge conflicts were pretty significant, and addressed remaining comments.
I changed the jQuery Deferred to a native Promise, matching
add_js
. I'm still not sure that it is actually necessary - there isn't a concern about out-of-order execution like with new JS files that was the reason for introducing theadd_js
command. - π¨π¦Canada gapple
Tests are now passing, and I've updated the draft Change Record
- π«π·France andypost
It looks nice and ready except legacy test for JS deprecation message
- π¨π¦Canada gapple
Added a test for a the JavaScript deprecation message
- π«π·France andypost
Thanks π last mossing brick is follow-up to remove deprecation in 11.x - todo needs link to issue
- π«π·France andypost
Filed follow-up π [11.x] Require array argument for AddCssCommand Postponed fixed TODOs https://git.drupalcode.org/project/drupal/-/merge_requests/1420/diffs?co...
- Status changed to RTBC
almost 2 years ago 10:11pm 15 February 2023 - πΊπΈUnited States smustgrave
Change record makes sense (to me)
Test coverage of deprecation is there
New tests for new way to do the call is there
No remaining tasks
All remaining threads closedThis looks good to me.
- π«π·France nod_ Lille
updated release notes.
I was about to commit this but have a question, with this change it's not possible to add inline CSS with the addCss command. It's easy enough to add a new append/prepend command with the styles to do the same but just wondering if we're all good with that.
- Status changed to Fixed
over 1 year ago 9:19am 31 March 2023 Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
over 1 year ago 10:33pm 31 July 2023 - π¦πΊAustralia acbramley
This introduced a fairly convoluted regression π claro.jquery.ui css assets may be added the page multiple times Fixed
- π§πͺBelgium dieterholvoet Brussels
I was about to commit this but have a question, with this change it's not possible to add inline CSS with the addCss command. It's easy enough to add a new append/prepend command with the styles to do the same but just wondering if we're all good with that.
This broke the Critical CSS module: π Critical CSS is broken in AJAX requests since Drupal 10.1.0 Active
- πΊπΈUnited States JonMcL Brooklyn, NY
Previous behavior was to prepend the CSS:
$('head').prepend(response.data);
I think the new code is appending to which can cause order of precedence issues. A module might have CSS component assets (weight of 0) which are added into after our theme's CSS_THEME assets (weight of 200).
This might not be an issue for most situation, but I just noticed it with some quick D10 testing in advance of an upgrade. Maybe it was just a coincidence that we were able to have our theme CSS override the module's component CSS?
Any known workarounds for this (potential) issue?
- π«π·France yonailo Paris
We are experiencing an issue with z-index in the media library widget related to this CSS sorting change.
It seems that https://www.drupal.org/project/drupal/issues/3396505 π Improved Drupal\Core\Ajax\AddCssCommand causes change in CSS load order. Needs work fixes our issue.
Hope this helps.
- π©πͺGermany vincent.hoehn Dresden, Germany
We also have a problem with the z-index and the media-library-widget. It occurred after the update from 10.1.7 to 10.2.0.