- Issue created by @SivaprasadC
- Status changed to Postponed: needs info
9 months ago 1:37pm 5 October 2023 - 🇺🇸United States jrockowitz Brooklyn, NY
I believe there is an issue, but I can't seem to replicate it using the attached webform added via a block.
My guess is we need to change the path from
/webform/css/feedback?s1agpk&s1agpk0
to/webform/css/feedback/custom.css?s1agpk&s1agpk0
First, we need to be able to reproduce this issue.
- 🇺🇦Ukraine HitchShock Ukraine
@jrockowitz Seems like the issue is reproducible only on D10 when the webform loads via AJAX. E.g. we load webform as a modal window.
ajax.js was updated a lot on Drupal 10.1 - Status changed to Active
8 months ago 1:23pm 27 October 2023 - 🇺🇦Ukraine HitchShock Ukraine
The following
loadjs
code breaks a solution - https://github.com/muicss/loadjs/blob/master/dist/loadjs.js#L113 - Merge request !376[#3389539] Made a route for inline css compatible with AddCssCommand on D10 sites → (Merged) created by HitchShock
- last update
8 months ago 534 pass, 4 fail - Status changed to Needs work
8 months ago 9:25am 2 November 2023 - 🇺🇦Ukraine HitchShock Ukraine
Made a quick patch to solve the issue.
But we still need to cover it with tests. - 🇺🇸United States jrockowitz Brooklyn, NY
The patch looks pretty good, and the broken tests need to be fixed.
- last update
8 months ago 535 pass, 2 fail - last update
8 months ago 536 pass - Status changed to Needs review
8 months ago 7:39pm 5 November 2023 - last update
8 months ago 534 pass, 4 fail - 🇺🇦Ukraine HitchShock Ukraine
Fixed tests and also fixed the cache invalidation issue.
After updating the CSS assets route a bit another logic implements for NotFoundHttpException - the fast_404 instead of the 404 system page.
The fast_404 (Fast404ExceptionHtmlSubscriber::on404) breaks the invalidation cuz it makes the response only with 1 cache tag - 4xx-response. So I had to implement a new solution for 404 response. - last update
8 months ago 536 pass The last submitted patch, 8: 3389539-ajax-add-css-compatibility-8.patch, failed testing. View results →
- Status changed to RTBC
8 months ago 2:36pm 6 November 2023 - Status changed to Needs work
8 months ago 6:37pm 8 November 2023 - 🇺🇸United States jrockowitz Brooklyn, NY
I just realized that _webform_asset_alter() must also be updated to ensure custom js and css loads last.
I also think we need to update the path for JavaScript so that custom CSS and JS use similar paths.
I am not sure if the file name should
/inline.css
or/custom.css
- 🇺🇦Ukraine HitchShock Ukraine
Hi @jrockowitz
- Nope, we don't need it, cuz _webform_asset_alter() still should works for the updated route, we changed only the end of the route, but not the start
- I thought about that, it's not required, but I agree that it'll be fine to make both of them in the same way
- I had the same dilemma when creating the patch :) I still don't know which option is better
I think I'll implement the same way for JS this weekend.
- last update
8 months ago 536 pass - Status changed to Needs review
8 months ago 9:33pm 11 November 2023 - last update
7 months ago 536 pass - 🇺🇸United States jrockowitz Brooklyn, NY
@HitchShock, this looks great and is very close to RTBC.
I wish I had thought more about whether it should be /inline.css or /custom.css because the obvious answer is /custom.css. After all, the settings are labeled and described as 'Custom CSS/JS' via the UI (/admin/structure/webform/config/libraries and /admin/structure/webform/manage/contact/settings/assets).
- 🇨🇦Canada joseph.olstad
Our organization just spent a couple weeks of manhours troubleshooting missing webforms.
- 🇨🇦Canada joseph.olstad
patch #19 solves our missing webforms bug. A couple weeks of manpower flushed to figure out that we needed this patch.
- Status changed to RTBC
4 months ago 9:39pm 23 February 2024 - 🇨🇦Canada joseph.olstad
tested to work with the latest tagged release of the webform module and the latest minor release of Drupal 10.1 (10.1.8) on PHP 8.1
- 🇺🇸United States jrockowitz Brooklyn, NY
I am going to make one nitpick change and switch the code from using inline.css to custom.js.
From there, I will commit the change. Thank you for working on this.
- last update
3 months ago 536 pass - 🇨🇦Canada joseph.olstad
Looks good, doesn't matter to us what the filename is as long as the bug is resolved. I would think that this fix should be pushed out sooner rather than later. This issue has already caused a lot of confusion and issues, would be best to move forward sooner than later.
- last update
3 months ago 536 pass -
jrockowitz →
committed 2fc9b78f on 6.2.x authored by
HitchShock →
Issue #3389539 by HitchShock, jrockowitz, SivaprasadC, arulan_pari,...
-
jrockowitz →
committed 2fc9b78f on 6.2.x authored by
HitchShock →
- Status changed to Fixed
3 months ago 8:10pm 7 April 2024 - 🇺🇸United States jrockowitz Brooklyn, NY
Merged! I will be tagging a new beta release very soon.
Automatically closed - issue fixed for 2 weeks with no activity.