- Issue created by @Grevil
- @grevil opened merge request.
- Assigned to thomas.frobieter
- Status changed to Needs work
almost 2 years ago 2:47pm 27 March 2023 - π©πͺGermany Grevil
OK, I fixed the remaining deprecated dependency. Now only the CSS issues remain, giving this issue to you @thomas.frobieter, all "#drupal-off-canvas" occurences should target "#drupal-off-canvas-wrapper" for D10 and "#drupal-off-canvas:not(.drupal-off-canvas-reset)" for Drupal 9, see: https://www.drupal.org/node/3305664 β .
@Anybody, since the first selector is Drupal 10 specific, I suggest we drop the Drupal 10 compatibility for the current branch and create a new 3.x branch which is D10 only.
- π©πͺGermany Anybody Porta Westfalica
Thx @Grevil! I agree, please merge this into 2.x and remove || ^10 and create a new 3.x branch with the proposed changes as separate issue afterwards. Assigned to @thomas.frobieter.
PS: Crazy and super cool that Drupal detected this!
- Assigned to Grevil
- Status changed to Needs review
almost 2 years ago 2:53pm 27 March 2023 - Status changed to Needs work
almost 2 years ago 8:58am 31 March 2023 - π©πͺGermany Grevil
The css changes need to be applied to the D9 and D10 Version, but different changes for each branch! As described in #3! I can try to solve them and let @thomasfrobieter review afterwards.
- π©πͺGermany Anybody Porta Westfalica
@Grevil yes please. You may create both MR's here. To make it easier for @thomas.frobieter to review.
- π©πͺGermany Grevil
Damn I should have read through the whole change record first...
To target all versions, simply combine the selectors
- Assigned to thomas.frobieter
- π©πͺGermany Grevil
And also the css files are minified, let's just fix this in one branch I am not 100% sure were the changes need to get applied, so I reassign @thomas.frobieter here.
- π©πͺGermany Anybody Porta Westfalica
@Grevil: FYI: Minification will be removed on all Drupal project, still an open task for @thomas.frobieter when the time has come
thomas.frobieter β made their first commit to this issueβs fork.
- last update
almost 2 years ago Composer require failure - last update
almost 2 years ago Composer require failure - last update
almost 2 years ago Composer require failure Thx @Grevil! I agree, please merge this into 2.x and remove || ^10 and create a new 3.x branch with the proposed changes as separate issue afterwards. Assigned to @thomas.frobieter.
I disagree on this. #drupal-off-canvas is still present in D10, so there is no need to switch to the outer wrappers selector. So we should still have D9 compability, without extra release.
Important thing for the off-canvas styles to work: Uninstall GIN Layout Builder, as it contains a buggy sidebar. We should stick with the core styles, which seems more reliable now.
- last update
almost 2 years ago Composer require failure - Status changed to Fixed
almost 2 years ago 8:13am 18 April 2023 -
thomas.frobieter β
committed 929a2c39 on 2.x authored by
Grevil β
Issue #3350661 by thomas.frobieter, Grevil, Anybody: Fix remaining...
-
thomas.frobieter β
committed 929a2c39 on 2.x authored by
Grevil β
- Status changed to Fixed
almost 2 years ago 8:14am 18 April 2023 - Status changed to Fixed
almost 2 years ago 8:58am 18 April 2023 - π©πͺGermany Anybody Porta Westfalica
@thomas.frobieter I'm fine with any decision, as it's your part, just want to ensure we don't do something wrong here due to this message from drupal upgrade status:
web/themes/custom/webksdct/css/modules/backend/layout_builder.min.css: βββββββββββ¬βββββββ¬ββββββββββββββββββββββββββββββββββββββββββββββββββββββ β STATUS β LINE β MESSAGE β βββββββββββΌβββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββ€ β Manuell β 0 β The #drupal-off-canvas selector is deprecated in β β ΓΌberprοΏ½ β β drupal:9.5.0 and is removed from drupal:10.0.0. See β β οΏ½fen β β https://www.drupal.org/node/3305664. β β β β β βββββββββββ΄βββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
which says it will be removed?!
See https://www.drupal.org/node/3305664 β where they say only the
"-wrapper"
one will be kept.If you already read all that, fine! :)
I've checked it in our D10 instance, its present. The way the new CSS reset of the offcanvas work is kinda forcing us to use the other id. In fact, it doesnt matter, as long as the selector specicicy is heigher then the reset - what is the case. Since we need to support D9 + D10, this is the way to go.
Otherwise we need to drop D9 support, I don't want to maintain two versions of this.
- π©πͺGermany Anybody Porta Westfalica
D9 support may be dropped until end of this year. Until then it's easy to use cherry-picks to copy changes over.
You decide! :) - Status changed to Fixed
almost 2 years ago 11:59am 18 April 2023 We have a working solution, so we should not make more work for ourselves than necessary.
- π©πͺGermany Grevil
@Anybody please read the change record!
https://www.drupal.org/node/3305664 β
To target all versions, simply combine the selectors. Be sure to test thoroughly.
#drupal-off-canvas:not(.drupal-off-canvas-reset),
#drupal-off-canvas-wrapper {
}Both the d9 and d10 CSS selectors are present! So no harm, leaving the d9 selector.
The mentioned solution from the change notice will produce 200% CSS code, I don't see any need to do that.
We might switch the selectors when Drupal 9 is gone.Howewer, we should not waste more time on this completely unimportant issue ;)
- π©πͺGermany Anybody Porta Westfalica
@thomas.frobieter: This introduced a critical regression, please always review carefully: π Regression: Not Drupal 10 compatible anymore Fixed
The merge removed the Drupal 10 compatibility. Hopefully no other things were reverted / broken? Please take a look at the commit above again, if anything else is fine! I'm going to fix the D10 compatibility in the other issue now.
No idea how that happened... but a good reason for careful reviews.
- π©πͺGermany Anybody Porta Westfalica
If anything else was broken by that commit, please create a separate issue for the fix.
I've checked my commits, looks like there are only CSS and library.yml changes. So what exactly is the point here with the D10 compability? They check for stylesheets, really?!
Oh, yeah sorry, missed that change. However that happened. Should have resulted in a merge conflict, didn't it?
The other commits (stylesheet tweaks) are tested, so they should be fine.