Closed (duplicate)
Project:
Drupal core
Version:
9.2.x-dev
Component:
Claro theme
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
23 Jul 2021 at 21:26 UTC
Updated:
8 Nov 2021 at 13:07 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
volkswagenchickAdding
Accessibilitytag for wider reach.Comment #3
kostyashupenkoComment #5
volkswagenchickThis might not be the best approach as this appears to be deprecated code in Drupal 10 based on the automated test results.
Comment #8
bartlangelaanIn Drupal 9.2.x, multiple core libraries were deprecated. One of them is jquery.ui.dialog. It was deprecated in #3113400: Deprecate more jQuery UI library definitions (change record: #3156376).
Previously, if a module required core/jquery.ui.dialog, Claro removed files that were breaking the layout. With above change, this override was removed.
This means that every module that is still depending on core/jquery.ui.dialog is possibly broken since Drupal 9.2, as is the case with Webform. Some libraries that were not loaded before, are now loaded again.
The long-term fix is for Webform to not depend on the core/jquery.ui.dialog library. I have opened a task in the Webform issue queue: #3245046: Remove dependency on jQuery UI.
However, while the jquery.ui.dialog library is deprecated in 9.2, it is still supported until Drupal 10. That's why I think the patch provided is the right approach. It can simply be removed when Drupal 10 is released.
I believe that the libraries-extend part of the patch is not needed anymore, which is why I have opened a new MR. It will probabily fail automated tests on the fact that it overwrites a deprecated library - while I think it should be allowed in cases like this.
Comment #9
bartlangelaanInvestigating further, it looks like this issue is a duplicate of #3195764: Modules depending on jQuery UI have broken styling since Drupal 9.2. I have added the Webform problem to the issue summary there.
Comment #10
dwisnousky commentedGot messed up w/ text editor - will fix then add correct patch
Comment #11
dwisnousky commentedNote: Added patch for our team to use while we're still on Drupal version 9.2 w/ PHP version 7.4
Comment #12
dwisnousky commentedComment #13
bartlangelaanHey dwisnousky,
thanks for the patch! However, this issue is a duplicate of #3195764: Modules depending on jQuery UI have broken styling since Drupal 9.2. Can you try out the patch available there?
If that patch works for you, you can change the status of that issue to Reviewed & tested by the community. Then a maintainer can take a look at it, and eventually fix it for Drupal 9.3.
I will close this issue again, so the focus is back on #3195764: Modules depending on jQuery UI have broken styling since Drupal 9.2.