Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
See issue #2090571
Comment | File | Size | Author |
---|---|---|---|
#7 | omega-moved-off-canvass-assets-2092869-7.patch | 0 bytes | Internet |
#1 | moved-offcanvas-assets-2092869-1.patch | 4.1 KB | peteainsworth |
Comments
Comment #1
peteainsworth CreditAttribution: peteainsworth commentedI've moved the assets, creating a new js/layouts/off-canvas directory to match the CSS structure. I've also updated _off-canvas.scss and off-canvas.layout.inc to reflect the new locations. Should off-canvas.js be renamed off-canvas.layout.js? What is the convention there?
Comment #2
peteainsworth CreditAttribution: peteainsworth commentedChanged issue status.
Comment #3
peteainsworth CreditAttribution: peteainsworth commentedAlso should I include the regenerated css in the patch?
Comment #4
msmithcti CreditAttribution: msmithcti commentedLooking like a worthwhile restructure. Just a minor point:
Why are we moving this out of the layout? IMO unlike the images this is so specific to the layout it should stay there.
I think you're right, renaming this file to off-canvas.layout.js would seem to follow convention (or at least set a useful convention to follow).
Such a nice clean up!
You are right to leave the CSS out of the patch, makes it easier to review.
Comment #5
peteainsworth CreditAttribution: peteainsworth commentedThere was no particular reason behind moving the JS it was just based on #2090571-4: Create an off canvas Omega layout
Ideally it would be nice to keep all the layout specific assets within the layout directory to contain them. However, since the SASS already needs to be contained within the configured sass-dir, should the JS follow this convention or should the convention be that assets remain in the layout directory unless they can potentially be reused? In this case, I could see the JS being reused in an alternative off-canvas layout.
Comment #6
Internet CreditAttribution: Internet commentedComment #7
Internet CreditAttribution: Internet commentedUpdated the patch to move javascript file out of assets but keep it in the layout folder.
Comment #8
Internet CreditAttribution: Internet commentedComment #9
steinmb CreditAttribution: steinmb as a volunteer commentedEmpty patch