Closed (fixed)
Project:
Claro
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Jan 2019 at 11:13 UTC
Updated:
22 Oct 2019 at 09:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
huzooka#3024975: Add Drupal JavaScript theme function for checkbox is already fixed, but label/description and the form-item wrapper will be added in a separate issue.
Added #3082598: Add theme function for form labels in JavaScript.
Note:#3024975: Add Drupal JavaScript theme function for checkbox breaks our existing workaround (with Drupal core 8.8.x).
Comment #3
effulgentsia commentedWhy does this need to be postponed on #3082598: Add theme function for form labels in JavaScript? At least on the 8.x-2.x branch, I don't see anything in Claro's override of tableselect.js or media_library.view.js that depends on that issue. What am I missing?
Comment #4
lauriii@effulgentsia The
media_library.view.jsrenders a label. We override the markup to match with Claro.Comment #5
effulgentsia commentedIs #4 true for the 2.x branch?
Here's the output I get from
diff core/modules/media_library/js/media_library.view.es6.js themes/claro/js/claro.media_library.view.es6.js.The only change I see is the removal of the
js-prefix from selectors, but that looks like a regression to me (per #3079738-33: Add Claro administration theme to core) rather than something Claro intends.Comment #6
effulgentsia commentedIn particular, that looks like no change at all to me.
Comment #8
lauriiiHmm, I think @effulgentsia is right. It doesn't seem like we actually change the label markup.
I closed #3085249: [PP-1] Remove work-arounds that were blocked on #3024975 and #3082598 as a duplicate to this. Wim posted a patch on #3085249-2: [PP-1] Remove work-arounds that were blocked on #3024975 and #3082598 and I'm just uploading it here.
Comment #9
lauriiiThis addresses also #3084724: Regression on table select checkbox.
Comment #10
lauriiiIt seems these are both broken before applying the patch:
And after applying to patch the result is as expected:

Comment #11
wim leersWow, so not only less JS in Claro, so less code to maintain and a simpler core patch in #3079738: Add Claro administration theme to core, but also bugs fixed!? Yes, please! 🙏🥳🚢
Comment #13
lauriii🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
Committed and pushed to 8.x-2.x.