Closed (fixed)
Project:
Drupal core
Version:
10.0.x-dev
Component:
Claro theme
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
15 Oct 2019 at 06:34 UTC
Updated:
13 Jun 2023 at 14:39 UTC
Jump to comment: Most recent, Most recent file


Comments
Comment #2
pranav.aeer commentedComment #3
pranav.aeer commentedComment #4
pranav.aeer commentedComment #5
lauriiiComment #6
fhaeberleComment #7
amjad1233Comment #8
amjad1233Comment #9
lauriiiThis does indeed improve how the throbber is rendered! Thank you @amjad1233!
It seems like the root cause for the problem is that the throbber is rendered inside dropbutton:
I'm wondering if we would be able to change the ajax logic so that the throbber would be rendered outside the dropbutton? If not, we should try to style it so that there's no visual indication that the throbber is rendered inside dropbutton.
Comment #10
amjad1233@lauriii I thought of that but thought would be overkill. If you think that's a good solution I can spend some time to see if I can move it outside.
Also, I found in the style guide there are lot of elements still using old "display: block" kind of properties. It would be good to refactor them to something like flexbox. I am sure it's a lot of work.
Awaiting your directions.
Comment #11
amjad1233Any updates on this one ?
Comment #12
afeijoI just take a look on this issue, the new css solve the position but I agree that we also should fix the background.
Moving it outside the button would do it, anyone know which js file is the right one? Maybe block.admin.js
Comment #13
antonellasevero commented@pranav73 @amjad1233 In order to better test this, what is the expected behaviour of the throbber in the table display? Is it supposed to go underneath or to the right side? I am still seeing it underneath.
Comment #14
afeijoHave you applied the patch in #8? With it, the throbber goes to the right but still inside the , which have a weird visual extending the button width
Comment #15
huzookaThis is not just about the block layout admin page.
Right now, if you have an AJAXified secondary action link in a dropbutton, and you click on that, you won't see the throbber after that the dropbutton get collapsed.
Comment #16
rachel_norfolkretagging
Comment #17
faiyaz.ergo commentedAsked @laurii about the status of this ticket and here's is the update:
"The next step would be to see if there’s a way to render the ajax throbber outside of the dropbutton element. This might mean we have to move away from using the .use-ajax API".
Due to available time constraints, I won't be able to address this further.
Comment #18
huzooka@amjad1233, since you asked for updates - well I thought that you're still working on this (you forgot to unassign the issue).
The provided patch works only
The .
addCSS class isn't always there, so the patch in #8 works around the issue only for the dropbuttons used in the block layout admin form's modal.Comment #19
amjad1233@huzooka Thanks for your input. I stopped as the discussion was going around if we do it through Ajax(move the throbber outside of div) or we should continue with .css.
I mean if we are happy with CSS way I can add all other action classes. I am happy to convert other tradition markup in dropbox to Flex-box syntax if needed.
Comment #20
sibustephen commentedA patch applied with css.
Comment #21
sibustephen commentedComment #22
sibustephen commentedComment #23
ant1@sibustephen: I believe you forgot to compile the CSS. Check the documentation of Front-end developer tools in core.
Comment #24
fhaeberleI added the missing compiled css! :)
Comment #25
fhaeberleComment #26
johnpicozziThis looks good and works as expected RTBC +1
Comment #27
oriol_e9g* asteric is missing in code comments acording to coding standards.
Comment #28
lauriiiTested this manually. I can still see a gray background behind the throbber. Also, in the block place dialog the throbber is partially invisible because it's positioned partially outside of the dialog:

Comment #29
swatichouhan012 commentedComment #30
swatichouhan012 commented@lauriii i removed gray background behind the throbber and added missing (*) asteric according to comment @oriol_e9g. please review updated patch file i am attaching here with interdiff and screenshot.
Comment #31
pranav45 commentedPatch from #30 works fine. +1 for RTBC.
Comment #32
KondratievaS commentedThere is no background anymore, but throbber and button is not vertically centered in the block place dialog.
Also, margin between throbber and button should be same
Comment #33
swatichouhan012 commented@KondratievaS Thanks for review patch , i have fixed thorbber position issue in latest patch Kindly review.
Comment #34
KondratievaS commentedThere are 3 issues:
1. Space between Button and Throbber is too small
2. For small resolutions Button and Throbber is not vertically centered
3. IE11: Throbber should not change green frame of button
Comment #35
dhirendra.mishra commentedWe will work in #vb13febContribution.
Comment #36
swatichouhan012 commentedComment #37
sivaji_ganesh_jojodae commentedPatch #33 was introducing a horizontal scrollbar & hover style still had background & box-shadow.
The attached patch runs throbber on top of the button & fixes the issues mentioned above.
Comment #38
KondratievaS commentedTested patch from #37, issue 2 and 3 reported in #34 are not fixed
Comment #39
Therapychild commentedHello, this is my first attempt to patch, so please be gentle if I have done something incorrectly. I fixed the above issue where the progress spinner was not centered on the dropbuttons by adding to -37.patch. I got it to work on both the 'Place Block' dropbutton-single buttons, as well as a custom dropbutton in my project. I'm not sure how the test process works yet, so any direction would be appreciated.
Thank You.
Comment #40
swatichouhan012 commented@Therapychild please change status to Needs review after patch apply and interdiff file should be txt file so its won't run with test. excepts that all are good re uploading patch and interdiff to run test.
Comment #41
thallesThis is the result of patch #40:
Comment #42
KondratievaS commentedTested last patch in Chrome, FF, IE Edge, Safari and result is OK
Comment #44
ilgnerfagundes commentedResult in chrome Version 80.0.3987.122 (Official version) 64 bits, Is the progress not positioned next to the button, as suggested in comment #17?
Comment #45
swatichouhan012 commentedPatch #40 got passed.i am moving again this in needs revview.
Comment #46
KondratievaS commentedComment #47
kostyashupenkoComment #48
kostyashupenkoComment #49
KondratievaS commentedGot same result as on #42. Idk should we move throbber to be near with button as said in #17 or not, description says nothing about it, so move task to "Reviewed & tested by the community" status
Comment #50
KondratievaS commentedComment #51
paulocsRTBC +1
Tested in Chrome and FF.
Comment #52
ckrinaThanks all for working on this! I've taken a look and, as several people already showed, this is how it looks right now:
As it can be seen, each button follow a different pattern: one outside on the right, the other inside the button. Since there isn't any design direction saying otherwise, the previous one (Seven) should be followed: let's keep it on the right, outside the button on all situations.
Comment #53
kostyashupenkoComment #54
kostyashupenkoComment #55
KondratievaS commentedTested patch from #54 and only one issue found for mobile resolutions - throbber is beyond block, but idk is it real issue and should be fixed
Comment #57
pankaj.singh commentedComment #58
pankaj.singh commentedTested the patch given in #54 on 9.1.x-dev, throbber in claro shifted to the right with no shadow background as expected on #52. However, found different throbber effects in other core themes. Screenshot attched for ref.
Comment #59
KondratievaS commentedComment #60
shalinigaur commentedComment #61
shalinigaur commentedAs per comment #55 resolved issue found for mobile resolutions. Below is the screenshot after fixed.
Comment #62
KondratievaS commentedComment #64
KondratievaS commentedComment #65
Swapnil_Kotwal commentedComment #66
poojakural commentedComment #67
poojakural commented@swapnil I have applied your patch. Getting "error: can't open patch '3087950-61.patch': No such file or directory"
Tested 3087950-61.patch patch. Worked for me. Tested on chrome, Safari & firfox.
Please refer the attached Video.
Comment #68
bunty badgujar commentedThanks @pooja for test.
@swapnil, There is no change in patch with #61.
Adding #61 to testing queue again. There is no test failure in my local
Comment #69
bunty badgujar commentedComment #70
bunty badgujar commentedAll tests are cleared. As, there is no change in patch #68 and #61 moving to RTBC see #67
Comment #71
lauriiiI think we're making a good progress here. For some reason this patch introduces a "shadow" or a background color around the element, and makes the element larger:

Comment #72
poojakural commentedComment #73
pameeela commentedRemoving needs issue summary update tag as the IS looks fine to me.
Comment #74
komalk commentedHere is the fixed review the patch attached before after patch screenshot for the reference.
Comment #75
KondratievaS commentedTested patch from #74 and result is following: there is no background but throbber is too big - throbbers should have same size
Comment #76
KondratievaS commentedComment #77
komalk commentedReview the patch attached before after patch screenshot for the reference.
Comment #78
KondratievaS commentedTested patch from #77 and now throbber is not vertically centered with button and for mobile margin is missing between button and throbber
Comment #79
KondratievaS commentedComment #80
bunty badgujar commentedPlease make sure not to include screenshot in display.
Comment #81
tanubansal commentedTested from above mentioned test steps. It working fine for me after adding the latest patch
Comment #82
pameeela commentedComment #83
poojakural commentedComment #84
thallesFollow a new patch
Comment #85
meena.bisht commentedComment #86
samiullah commentedTested the #84 patch on clean install of drupal 9.1.x
Throbber matches on both the given places as given in steps
@thalles this can be moved to RTBC if code review is fine
Comment #87
thallesThanks @samiullah! I think can be moved to RTBC, because this is the only change
Comment #88
meena.bisht commentedComment #89
lauriiiThe positioning looks still slightly off when it's placed on a table row that is being hovered.
Comment #90
Vidushi Mehta commented@lauriii Can you tell in which browser you found this issue? As I checked on latest version of FF and Chrome but didn't find the issue you mentioned. It looks ok to me attaching screen shots for the same.
Comment #91
Vidushi Mehta commentedComment #93
Vidushi Mehta commentedComment #94
samiullah commented@vidushi tests seem to be failing, probably needs rework
Comment #95
pameeela commentedComment #96
lauriiiRe #90: It depends on how much space is required for the block label. I have few long block labels which means that the operations column shrinks to minimum, and cannot accommodate the throbber.
Comment #101
ameymudras commentedFor 9.5.x the throbber position has changed and the throbber displays in the centre as shown in the screenshot below. Ive re rolled the old patch #84 which displays throbber next to the place block. We need to review whether this change is desirable so that we can work on this issue further
Comment #102
sonam.chaturvedi commentedPatch #101 did not apply successfully on 9.5.x-dev version.
Moving to Need works
Comment #103
lucasscI had no problems applying the patch, it still applies to 9.5.x-dev (fresh install).
Comment #105
deepalij commentedPatch #101 applied successfully on 9.5.x-dev version, but not on 10.1.x-dev version
Moving to needs work
Comment #106
sakthivel m commented#107 Please review the patch
Comment #107
Aamir M commentedPatch #107 was applied successfully on 10.0.x-dev version only
Failed for 9.5.x-dev and 10.1.x-dev
Comment #108
Aamir M commentedComment #110
sahil.goyal commentedhi, As per the comment number #107 i have checked that the patch of comment n. #106 is working fine in 10.1.x-dev but i have seen that this patch is not getting apply for 9.5.x-dev so i'm created a new patch for 9.5.x version. Thanx
Comment #111
Arti Anil Pattewar commentedPatch #110 failed to apply on 9.5.x-dev.
For reference, please check below message.
Checking patch core/themes/claro/css/components/ajax-progress.module.css...
Checking patch core/themes/claro/css/components/ajax-progress.module.pcss.css...
Checking patch core/themes/claro/css/components/dropbutton.css...
error: while searching for:
border-color: #26a769 !important; /* 1 */
box-shadow: inset 0 0 0 1px #26a769, 0 0 0 1px #26a769;
}
error: patch failed: core/themes/claro/css/components/dropbutton.css:426
error: core/themes/claro/css/components/dropbutton.css: patch does not apply
Checking patch core/themes/claro/css/components/dropbutton.pcss.css...
Checking patch core/themes/claro/css/components/tabledrag.css...
Hunk #1 succeeded at 386 (offset 3 lines).
Checking patch core/themes/claro/css/components/tabledrag.pcss.css...
Comment #112
Arti Anil Pattewar commentedChanging status to needs work.
Comment #113
sahil.goyal commentedOh!, I've unable to notice some css in dropbutton.css file, as noticed i'll updating the patch.
Comment #114
Arti Anil Pattewar commentedAble to apply #113. Resolved indentation issue from cc failed.
Comment #115
Arti Anil Pattewar commentedAfter applying patch #113 the Progress throbber position is on text only.
Comment #116
akram khanFixing Custom command failed for both #113 and #114
Comment #117
akram khanComment #118
sakthivel m commented#118 Fixing Custom command failed
Comment #120
lauriiiComment #121
lauriiiComment #125
utkarsh_33 commentedPatch #106 with some modifications.
Comment #126
utkarsh_33 commentedComment #127
bnjmnmComment #128
dsandhya commentedI have created this patch for 10.1.x-dev and its working fine. Please verify.
Comment #129
lauriiiThank you @dsandhya! It looks like the approach that you are trying is pretty close to what we'd want. However, it requires using
position: absolutewhich may lead into some difficulties with the placement of the throbber. Have you seen the new approach that we are trying on the MR where we are trying to move the throbber outside the dropbutton containers? I'm wondering if you have thoughts on that.Comment #130
utkarsh_33 commentedComment #131
hooroomooIn table:

In modal:

Comment #132
hooroomooAdded a change record for the new data attribute "data-drupal-ajax-container"
Comment #133
lauriiiUpdating credits
Comment #134
shivam2812 commentedI want to Work on this issue can i get assigned??
Comment #135
bnjmnmUpdating credits
Comment #138
bnjmnmThis is committed to 10.1.x. Running tests on 10.0.x to make sure everything cooperates with the build dependencies before backporting.
It looks like this issue had multiple instances of people re-uploading patches to initiate tests. This is not necessary as every patch has a link below it that says "Add test / retest". Click into that and you can start a new round of tests without having to add another comment.
This issue also had multiple instances of comments that pasted in information that from the test runner results. There's no need to transfer that information to a comment, the information is already available by clicking into the peach colored results link that will say something like "PHP 8.1 & MySQL 5.7 29,370 pass, 2 fail"
There were a bunch of "Custom commands failed" patches as well. With gitlab MRs this is less noisy, but the comments can make an issue hard to follow. This is bound to happen on occasionYou can check for Custom Commands Failed locally without having rely on the Drupal testbot. Notice at the end of the fail reports it says
I also noticed that comment #9 from October 2019 suggested the approach that ultimately was used
but was not even attempted until 100+ comments later in April 2023. Even if someone saw this recommendation, I can understand why it might have not been tried. I've noticed that solving via CSS only can seem safer and easier because it's "only" changing presentation. However, it is often the approach most likely to cause side effects and not cover certain edge cases. A JS/Markup fix can often be the less disruptive approach, even if the changes seem like they're more invasive.
Comment #139
bnjmnmThis bugfix is worth backporting. It currently does not apply to 10.0.x, however
Comment #141
gauravvvv commentedI have attached patch for 10.0.x. please review
Comment #142
smustgrave commentedSeems reroll for 10.0.x had some issues.
Comment #143
gauravvvv commentedTests seems passing now.
Comment #144
smustgrave commentedReroll seems to be passing.
Comment #146
bnjmnmBackported to 10.0.x. While this this is technically an API change, the risks are low as it would require the deliberate addition of a pre-existing
data-drupal-ajax-containerattribute somewhere on the site accompanied by several very specific customizations - and were such a scenario to occur the trivial impact would be outweighed by the benefits of this fix.