Problem/Motivation
The drupal.dialog.off_canvas library has been altered for Drupal 10, but the library overrides in stable 9 have not been changed to match this.
Here is the definition for drupal.dialog.off_canvas
drupal.dialog.off_canvas:
version: VERSION
js:
misc/dialog/off-canvas/js/off-canvas.js: {}
css:
base:
misc/dialog/off-canvas/css/reset.css: {}
misc/dialog/off-canvas/css/base.css: {}
misc/dialog/off-canvas/css/utility.css: {}
component:
misc/dialog/off-canvas/css/button.css: {}
misc/dialog/off-canvas/css/drupal.css: {}
misc/dialog/off-canvas/css/form.css: {}
misc/dialog/off-canvas/css/table.css: {}
misc/dialog/off-canvas/css/details.css: {}
misc/dialog/off-canvas/css/messages.css: {}
misc/dialog/off-canvas/css/tabledrag.css: {}
misc/dialog/off-canvas/css/throbber.css: {}
misc/dialog/off-canvas/css/dropbutton.css: {}
misc/dialog/off-canvas/css/titlebar.css: {}
misc/dialog/off-canvas/css/wrapper.css: {}
dependencies:
- core/jquery
- core/once
- core/drupal
- core/drupal.ajax
- core/drupal.announce
- core/drupal.dialog
- core/drupal.dialog.ajax
- core/drupal.touchevents-test
and here is the library overrides for it.
core/drupal.dialog.off_canvas:
css:
base:
misc/dialog/off-canvas.reset.css: css/core/dialog/off-canvas.reset.css
misc/dialog/off-canvas.base.css: css/core/dialog/off-canvas.base.css
misc/dialog/off-canvas.css: css/core/dialog/off-canvas.css
misc/dialog/off-canvas.theme.css: css/core/dialog/off-canvas.theme.css
component:
misc/dialog/off-canvas.motion.css: css/core/dialog/off-canvas.motion.css
misc/dialog/off-canvas.button.css: css/core/dialog/off-canvas.button.css
misc/dialog/off-canvas.form.css: css/core/dialog/off-canvas.form.css
misc/dialog/off-canvas.table.css: css/core/dialog/off-canvas.table.css
misc/dialog/off-canvas.details.css: css/core/dialog/off-canvas.details.css
misc/dialog/off-canvas.tabledrag.css: css/core/dialog/off-canvas.tabledrag.css
misc/dialog/off-canvas.dropbutton.css: css/core/dialog/off-canvas.dropbutton.css
misc/dialog/off-canvas.layout.css: css/core/dialog/off-canvas.layout.css
if you have a theme based upon stable, this is causing issues with layout build, and modules like lb_claro.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comments
Comment #2
gauravvvv commentedI have updated the library overrides. Attached patch for same. please review
Comment #4
davidmv97 commentedI have tested the attached patch from Gauravvvvv, and it worked for me
Comment #8
mithun sAdd a MR for the above issue from the patch #2 as the MR's can be tracked better compared to legacy patch methods.
Thanks!
Comment #9
smustgrave commentedAppears to have a test failure.
Comment #10
markconroy commentedSetting to Needs review again, I just want to check that we don't have a red herring test failure.
===
Thanks to Code Enigma for sponsoring my time to work on this.
Comment #11
markconroy commentedI think I've come back out of the rabbit hole and tracked down the correct issue here. It's not that stable9 is trying to reference the wrong files, stable9 does not have any CSS files any more for off_canvas, they were all removed by
c2af57548.So when we try to run the tests, specifically
Stable9LibraryOverrideTest, it's looking for CSS files instable9/css/core/dialog...which are no longer there.Let's see if removing that section of the
stable9.info.ymlfile and the corresponding library from$librariesToSkipfixes this issue.===
Thanks to Code Enigma for sponsoring my time to work on this.
Comment #12
smustgrave commentedNice research!
Still seems Stable9LibraryOverrideTest is failing, with you though thought removing 'core/drupal.dialog.off_canvas', from the skipped would be the fix.
Comment #13
markconroy commentedHi @smustgrave,
Looks like we need to keep the line to override the off_canvas library in the
$librariesToOverridearray.Tests are passing now.
---
Thanks to Code Enigma for sponsoring my time to work on this.
Comment #14
markconroy commentedComment #15
smustgrave commentedRemoval looks good to me.
Comment #20
catchCommitted/pushed to 11.x and cherry-picked back through to 10.3.x, thanks!