Early Bird Registration for DrupalCon Atlanta is now open! By registering during our Early Bird Registration window, you’ll save $100. This window ends on 19 January 2025 and will go by quickly, so don’t wait!
Problem/Motivation
Discovered an issue in Claro (in Drupal 9.1) when you try to resize a dialog.
The dialog would disappear.
I also tested this on 8.9.10 and there the problem seems not to exist.
Steps to reproduce
- Go to
admin/structure/block/manage/claro_page_title
- Click on "Browse available tokens."
- Try to resize dialog
Note: When I override
core/drupal.dialog:
- claro/claro.drupal.dialog
with
core/drupal.dialog:
- seven/seven.drupal.dialog
the problem is solved. So needs to happen somewhere in the claro.drupal.dialog
Proposed resolution
Fix dialog resizing in Claro
Remaining tasks
Find & fix bug
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#15 | dialouge_resize.mp4 | 1.6 MB | vikashsoni |
#13 | 3186463_after_multiple_modal issue_13.gif | 4.12 MB | hinal05 |
#13 | 3186463_before_multiple_modal issue_13.gif | 3.06 MB | hinal05 |
#13 | 3186463_after_13.gif | 3.02 MB | hinal05 |
#13 | 3186463_before_13.gif | 1.26 MB | hinal05 |
Comments
Comment #2
antoniya CreditAttribution: antoniya commented@saschaeggi I just noticed this today while adding some Metatag defaults! I can also confirm that it's not present when using Seven so it must be a Claro specific issue.
BTW if you scroll down you'll notice that the tokens dialog gets pinned at the very bottom of the page. It took me a minute to notice this.. I had already opened it a bunch of times and tried to resize it every time. When I finally scrolled down I had like 17353685629 modals at the bottom of the page. 😄
Comment #3
antoniya CreditAttribution: antoniya commentedThis seems to be a positioning issue: it goes away if I add
position: absolute;
to .ui-dialog in claro/css/components/dialog.css. I think this is a side effect that was introduced by this commit?Comment #4
batkorI can also confirm
Comment #5
codewithlakshay CreditAttribution: codewithlakshay at Material for Drupal India Association commentedYes, that's an issue caused due to incorrect position, tried to add
position: absolute;
as suggested by #3 and it works pretty well.Comment #6
santosh_verma CreditAttribution: santosh_verma at Material for Drupal India Association commentedComment #7
nod_Comment #8
santosh_verma CreditAttribution: santosh_verma at Material for Drupal India Association commentedComment #9
santosh_verma CreditAttribution: santosh_verma at Material for Drupal India Association commentedYes @nod_ this is a JS issue, The position from let and top are miss calculated from js just need to figure out this and also need to change position absolute to fixed or it also can we achievable with CSS ( position: fixed; left: 50%; top:50%; transform: translate(-50%, -50%); )
Comment #10
gauravvvv CreditAttribution: gauravvvv commentedI have provided a patch as per the solution suggested in #3, Please review if it is working or not.
Comment #11
gauravvvv CreditAttribution: gauravvvv commentedComment #12
abhijith s CreditAttribution: abhijith s as a volunteer and at Zyxware Technologies commentedApplied patch #10 and it works fine.Adding the screenshots below.
Before patch:
After patch:
RTBC +1
Comment #13
hinal05 CreditAttribution: hinal05 as a volunteer and at QED42 for Drupal India Association commentedApplied patch #10 and it's working fine for modal resize issue. At a time of testing I have found one more issue like multiple token modal issue. Please review the screenshots.
Comment #15
vikashsoni CreditAttribution: vikashsoni as a volunteer and at Zyxware Technologies commentedApplied #10 patch applied successfully
Thanks for the patch
for ref sharing video ....
Comment #16
gauravvvv CreditAttribution: gauravvvv at Material for Drupal India Association commentedComment #17
hmendes CreditAttribution: hmendes at CI&T commentedI tested the patch from #10 and it fixed the problem for me. I'll not send videos as they would be the same as the previous comments.
I can also confirm that the problem reported by #13 was fixed.
Changing this to RTBC.
Comment #18
lauriiiClosing this in favor of #3191527: Dialog width and positioning issues in Claro. Crediting folks on this issue there.
Comment #19
antoniya CreditAttribution: antoniya commentedSo it really was #3023311: Modal dialog style update that introduced this regression then? Thanks for fixing it! 🙌