Closed (fixed)
Project:
Date All Day
Version:
8.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
15 Jan 2021 at 11:04 UTC
Updated:
5 Nov 2021 at 09:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
ericmaster commentedJust needed this for Gin admin theme, not sure if it will work with the Claro theme, and there is probably a better approach, but here is a patch that worked for me.
Comment #3
ericmaster commentedComment #5
tunicThansk for the patch @Ericmaster.
However, I think the approach means adding a new jQuery selector to support themes that use different CSS classes. I've modified the jQuery selecto to be more general instead of more specific. This way I think we can support more themes with less code.
See issue fork.
I'd like some testing before committing this, specailly on already runnig sites with this module.
Comment #6
akalam commentedThanks @tunic for the update.
You are changing the element on which the selector applies (from the fieldset wrapper to the fieldset itself). Anyway, since the parent selector is used in conjunction with the find() jQuery method I don't expect to have any drawback with this change.
There is a minor codding standard issue introducing a empty line with spaces. This is not a problem, I can fix it by myself while testing.
I'll test it this afternoon with seven, claro and adminimal
Comment #7
tunicOops, the IDE installaton is new and I dind't configure automatic traling spaes remove on save.
Added a new commit to fix it.
Thanks for the review!
For the record, I've tested it with the themes available on my environment: Radix, Bartik, Claro, Olivero, Seven and even Stark. It worked even for the non-admin themes. Also, tested with single and multiple value fields (the multiple value fields are the ones that need the fieldset selector part I guess).
Comment #10
akalam commentedThanks @ericmaster and @tunic! I'm sorry for "stealing" the commit ownership. I checked the option to "squash" the commits on gitlab to avoid 2 commits because of the trailing white-space and it made me author automatically, sorry for that.
The issue credits are untouched.
Comment #11
akalam commented