Problem/Motivation
Progress throbber position and styling are incorrect while viewing in table display as compared with other displays.

Steps to replicate
Example:
1. Go to admin/structure/block and click on place block to check the throbber effect.
2. After that click on the place block button from place block modal popup form and check the throbber effect.

See the below screenshots
progress throbber
progress throbber

CommentFileSizeAuthor
#141 3087950-10.0.x-141.patch4.68 KBgauravvvv
#131 Screen Shot 2023-05-03 at 11.42.24 AM.png10.57 KBhooroomoo
#131 Screen Shot 2023-05-03 at 11.43.04 AM.png121.92 KBhooroomoo
#128 3087950_128.patch1.73 KBdsandhya
#125 Screenshot 2023-04-24 at 4.19.56 PM.png107.3 KButkarsh_33
#118 3087950-118.patch4.42 KBsakthivel m
#116 reroll_diff_113-116.txt3.06 KBakram khan
#116 3087950-116.patch4.4 KBakram khan
#115 Screenshot 2022-11-14 at 6.43.29 PM.png979.55 KBArti Anil Pattewar
#114 3087950-114.patch4.51 KBArti Anil Pattewar
#113 3087950-113.patch4.48 KBsahil.goyal
#110 interdiff_107-110.txt4.56 KBsahil.goyal
#110 3087950-110.patch4.45 KBsahil.goyal
#107 Error 10.1.png70.1 KBAamir M
#106 3087950-107.patch4.45 KBsakthivel m
#101 interdiff_84_101.txt4.88 KBameymudras
#101 3087950-101.patch6.23 KBameymudras
#101 place block throber.png234.52 KBameymudras
#90 chrome.png29.86 KBVidushi Mehta
#90 ff.png31.61 KBVidushi Mehta
#89 Screen Shot 2020-07-31 at 14.47.17.png17.18 KBlauriii
#84 3087950-84.patch6.29 KBthalles
#84 interdiff-77-84.txt1.02 KBthalles
#81 Screen Shot 2020-07-15 at 10.03.10 PM.png326.93 KBtanubansal
#81 Screen Shot 2020-07-15 at 10.00.54 PM.png325.26 KBtanubansal
#78 Снимок экрана в 2020-07-08 14-38-33.png206.31 KBKondratievaS
#77 interdiff_74-77.txt1.54 KBkomalk
#77 3087950-77.patch6.29 KBkomalk
#77 before-patch.png115.85 KBkomalk
#77 after-patch1.png95.46 KBkomalk
#77 after-patch.png123.18 KBkomalk
#75 Снимок экрана в 2020-07-06 16-51-06.png384.3 KBKondratievaS
#74 interdiff_68-74.txt1.23 KBkomalk
#74 3087950-74.patch5.39 KBkomalk
#74 Block_layout_drupal_9_1 (2).png116.07 KBkomalk
#74 Block_layout_drupal_9_1 (1).png129.72 KBkomalk
#71 Screen Shot 2020-06-23 at 14.53.32.png22.07 KBlauriii
#68 3087950-68.patch4.79 KBbunty badgujar
#67 3087950-issue.mov11.38 MBpoojakural
#65 3087950-62.patch4.96 KBSwapnil_Kotwal
#61 3087950-61.patch4.79 KBshalinigaur
#61 interdiff-3087950-54-61.txt2.44 KBshalinigaur
#61 pb_mob.png42.68 KBshalinigaur
#58 starkThrobber2.png4.99 KBpankaj.singh
#58 starkThrobber1.png6.09 KBpankaj.singh
#58 sevenThrobber2.png17.17 KBpankaj.singh
#58 sevenThrobber1.png9.17 KBpankaj.singh
#58 bartikThrobber2.png15.61 KBpankaj.singh
#58 bartikThrobber1.png6.56 KBpankaj.singh
#58 claroAfterPatch2.png7.31 KBpankaj.singh
#58 claroAfterPatch.png7.96 KBpankaj.singh
#58 claroThrobber2.png11.35 KBpankaj.singh
#58 claroThrobber1.png7.52 KBpankaj.singh
#55 selected_8475.png140.93 KBKondratievaS
#54 interdiff_40-54.txt2.4 KBkostyashupenko
#54 3087950-54.patch2.25 KBkostyashupenko
#52 throbber.gif825.81 KBckrina
#51 Screenshot from 2020-03-27 10-07-52.png189.71 KBpaulocs
#49 selected_8368.png55.54 KBKondratievaS
#44 WhatsApp Image 2020-03-16 at 06.36.11.jpeg94.41 KBilgnerfagundes
#42 selected_8276.png156.91 KBKondratievaS
#41 3087950-41-D8.png147.48 KBthalles
#40 3087950-interdiff-37-40.txt1.86 KBswatichouhan012
#40 3087950-40.patch2.25 KBswatichouhan012
#39 dropbutton-progress-throbber.png1.86 MBTherapychild
#39 3087950-39.patch2.25 KBTherapychild
#39 3087950-interdiff-37-39.patch1.86 KBTherapychild
#38 selected_8001.png93.76 KBKondratievaS
#37 attached-patch-37.png39.37 KBsivaji_ganesh_jojodae
#37 previous-patch-33.png33.41 KBsivaji_ganesh_jojodae
#37 interdiff.patch819 bytessivaji_ganesh_jojodae
#37 3087950-37.patch1.56 KBsivaji_ganesh_jojodae
#33 after.png79.56 KBswatichouhan012
#33 interdiff_30-33.txt950 bytesswatichouhan012
#33 3087950-33.patch1.31 KBswatichouhan012
#30 Block layout Drupal Core.png81.83 KBswatichouhan012
#30 interdiff_24-30.txt1.05 KBswatichouhan012
#30 3087950-30.patch1.34 KBswatichouhan012
#28 Screen Shot 2020-02-03 at 13.58.48.png19.58 KBlauriii
#24 3087950-24.drupal.Progress-throbber-position-is-incorrect.patch1.26 KBfhaeberle
#24 interdiff.3087950.20-24.txt636 bytesfhaeberle
#20 3087950-19-Progress-throbber-position-incorrect.patch673 bytessibustephen
#9 Screen Shot 2019-10-21 at 13.37.52.png112.56 KBlauriii
#8 3087950-incorrect-throbber-position-01.patch1.15 KBamjad1233
progress-throbber2.png57.55 KBpranav.aeer
progress-throbber1.png168.15 KBpranav.aeer

Issue fork drupal-3087950

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

pranav73 created an issue. See original summary.

pranav.aeer’s picture

pranav.aeer’s picture

Issue summary: View changes
pranav.aeer’s picture

Assigned: pranav.aeer » Unassigned
lauriii’s picture

Project: Claro » Drupal core
Version: 8.x-1.x-dev » 8.9.x-dev
Component: User interface » Claro theme
fhaeberle’s picture

Issue tags: +Novice, +DrupalCon Amsterdam 2019
amjad1233’s picture

Assigned: Unassigned » amjad1233
amjad1233’s picture

Status: Active » Needs review
StatusFileSize
new1.15 KB
lauriii’s picture

Issue summary: View changes
Status: Needs review » Needs work
StatusFileSize
new112.56 KB

This 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.

amjad1233’s picture

@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.

amjad1233’s picture

Status: Needs work » Needs review

Any updates on this one ?

afeijo’s picture

I 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

antonellasevero’s picture

@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.

afeijo’s picture

Have 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

huzooka’s picture

This 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.

rachel_norfolk’s picture

Issue tags: -DrupalCon Amsterdam 2019 +Amsterdam2019

retagging

faiyaz.ergo’s picture

Asked @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.

huzooka’s picture

Assigned: amjad1233 » Unassigned
Status: Needs review » Needs work

@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

+++ b/core/themes/claro/css/src/components/dropbutton.css
@@ -428,6 +428,14 @@
 
+.dropbutton > .add {
+  display: -webkit-inline-box;

+++ b/core/themes/claro/css/src/components/dropbutton.pcss.css
@@ -306,6 +306,11 @@
+
+.dropbutton > .add {
+  display: inline-flex;

The .add CSS 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.

amjad1233’s picture

@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.

sibustephen’s picture

Priority: Normal » Minor
Status: Needs work » Needs review
StatusFileSize
new673 bytes

A patch applied with css.

sibustephen’s picture

Assigned: Unassigned » sibustephen
sibustephen’s picture

Assigned: sibustephen » Unassigned
ant1’s picture

Status: Needs review » Needs work

@sibustephen: I believe you forgot to compile the CSS. Check the documentation of Front-end developer tools in core.

fhaeberle’s picture

Status: Needs work » Needs review
Issue tags: -Amsterdam2019
StatusFileSize
new636 bytes
new1.26 KB

I added the missing compiled css! :)

fhaeberle’s picture

johnpicozzi’s picture

Status: Needs review » Reviewed & tested by the community

This looks good and works as expected RTBC +1

oriol_e9g’s picture

* asteric is missing in code comments acording to coding standards.

/**
+  DropButton Throbber.
+**/
lauriii’s picture

Title: Progress throbber position is incorrect. » Progress throbber position is incorrect
Issue summary: View changes
Status: Reviewed & tested by the community » Needs work
StatusFileSize
new19.58 KB

Tested 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:

swatichouhan012’s picture

Assigned: Unassigned » swatichouhan012
swatichouhan012’s picture

Assigned: swatichouhan012 » Unassigned
Status: Needs work » Needs review
StatusFileSize
new1.34 KB
new1.05 KB
new81.83 KB

@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.

pranav45’s picture

Patch from #30 works fine. +1 for RTBC.

KondratievaS’s picture

Status: Needs review » Needs work

There 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

Only local images are allowed.

swatichouhan012’s picture

Status: Needs work » Needs review
StatusFileSize
new1.31 KB
new950 bytes
new79.56 KB

@KondratievaS Thanks for review patch , i have fixed thorbber position issue in latest patch Kindly review.

KondratievaS’s picture

Status: Needs review » Needs work

There 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

Only local images are allowed.

dhirendra.mishra’s picture

Assigned: Unassigned » dhirendra.mishra
Issue tags: +vb13febContribution

We will work in #vb13febContribution.

swatichouhan012’s picture

Assigned: dhirendra.mishra » Unassigned
sivaji_ganesh_jojodae’s picture

Status: Needs work » Needs review
StatusFileSize
new1.56 KB
new819 bytes
new33.41 KB
new39.37 KB

Patch #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.

KondratievaS’s picture

Status: Needs review » Needs work
StatusFileSize
new93.76 KB

Tested patch from #37, issue 2 and 3 reported in #34 are not fixed

bugs

Therapychild’s picture

StatusFileSize
new1.86 KB
new2.25 KB
new1.86 MB

Hello, 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.

swatichouhan012’s picture

Status: Needs work » Needs review
StatusFileSize
new2.25 KB
new1.86 KB

@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.

thalles’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new147.48 KB

This is the result of patch #40:

KondratievaS’s picture

StatusFileSize
new156.91 KB

Tested last patch in Chrome, FF, IE Edge, Safari and result is OK

OK

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 40: 3087950-40.patch, failed testing. View results

ilgnerfagundes’s picture

StatusFileSize
new94.41 KB

Result 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?

swatichouhan012’s picture

Status: Needs work » Needs review

Patch #40 got passed.i am moving again this in needs revview.

KondratievaS’s picture

Status: Needs review » Needs work
kostyashupenko’s picture

kostyashupenko’s picture

Status: Needs work » Needs review
KondratievaS’s picture

StatusFileSize
new55.54 KB

Got 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

KondratievaS’s picture

Status: Needs review » Reviewed & tested by the community
paulocs’s picture

StatusFileSize
new189.71 KB

RTBC +1

Tested in Chrome and FF.

ckrina’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Needs work
StatusFileSize
new825.81 KB

Thanks 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.

kostyashupenko’s picture

Assigned: Unassigned » kostyashupenko
kostyashupenko’s picture

Assigned: kostyashupenko » Unassigned
Status: Needs work » Needs review
StatusFileSize
new2.25 KB
new2.4 KB
KondratievaS’s picture

StatusFileSize
new140.93 KB

Tested 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

screen

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

pankaj.singh’s picture

Assigned: Unassigned » pankaj.singh
pankaj.singh’s picture

Assigned: pankaj.singh » Unassigned
StatusFileSize
new7.52 KB
new11.35 KB
new7.96 KB
new7.31 KB
new6.56 KB
new15.61 KB
new9.17 KB
new17.17 KB
new6.09 KB
new4.99 KB

Tested 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.

KondratievaS’s picture

Status: Needs review » Needs work
shalinigaur’s picture

Assigned: Unassigned » shalinigaur
shalinigaur’s picture

Assigned: shalinigaur » Unassigned
Status: Needs work » Needs review
StatusFileSize
new42.68 KB
new2.44 KB
new4.79 KB

As per comment #55 resolved issue found for mobile resolutions. Below is the screenshot after fixed.

pbmob

KondratievaS’s picture

Assigned: Unassigned » KondratievaS

Status: Needs review » Needs work

The last submitted patch, 61: 3087950-61.patch, failed testing. View results

KondratievaS’s picture

Assigned: KondratievaS » Unassigned
Swapnil_Kotwal’s picture

StatusFileSize
new4.96 KB
poojakural’s picture

Assigned: Unassigned » poojakural
poojakural’s picture

Assigned: poojakural » Unassigned
Status: Needs work » Needs review
StatusFileSize
new11.38 MB

@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.

bunty badgujar’s picture

StatusFileSize
new4.79 KB

Thanks @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

bunty badgujar’s picture

bunty badgujar’s picture

Status: Needs review » Reviewed & tested by the community

All tests are cleared. As, there is no change in patch #68 and #61 moving to RTBC see #67

lauriii’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Needs work
StatusFileSize
new22.07 KB

I 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:

poojakural’s picture

Assigned: Unassigned » poojakural
pameeela’s picture

Removing needs issue summary update tag as the IS looks fine to me.

komalk’s picture

Status: Needs work » Needs review
StatusFileSize
new129.72 KB
new116.07 KB
new5.39 KB
new1.23 KB

Here is the fixed review the patch attached before after patch screenshot for the reference.

KondratievaS’s picture

Tested patch from #74 and result is following: there is no background but throbber is too big - throbbers should have same size

bug

KondratievaS’s picture

Status: Needs review » Needs work
komalk’s picture

Status: Needs work » Needs review
StatusFileSize
new123.18 KB
new95.46 KB
new115.85 KB
new6.29 KB
new1.54 KB

there is no background but throbber is too big - throbbers should have same size.

Review the patch attached before after patch screenshot for the reference.

KondratievaS’s picture

Tested patch from #77 and now throbber is not vertically centered with button and for mobile margin is missing between button and throbber

bug

KondratievaS’s picture

Status: Needs review » Needs work
bunty badgujar’s picture

Please make sure not to include screenshot in display.

tanubansal’s picture

Tested from above mentioned test steps. It working fine for me after adding the latest patch

pameeela’s picture

Issue tags: +Bug Smash Initiative
poojakural’s picture

Assigned: poojakural » Unassigned
thalles’s picture

Status: Needs work » Needs review
StatusFileSize
new1.02 KB
new6.29 KB

Follow a new patch

meena.bisht’s picture

Assigned: Unassigned » meena.bisht
samiullah’s picture

Tested 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

thalles’s picture

Status: Needs review » Reviewed & tested by the community

Thanks @samiullah! I think can be moved to RTBC, because this is the only change

meena.bisht’s picture

Assigned: meena.bisht » Unassigned
lauriii’s picture

Status: Reviewed & tested by the community » Needs work
StatusFileSize
new17.18 KB


The positioning looks still slightly off when it's placed on a table row that is being hovered.

Vidushi Mehta’s picture

Status: Needs work » Needs review
StatusFileSize
new31.61 KB
new29.86 KB

@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.

Vidushi Mehta’s picture

Status: Needs review » Reviewed & tested by the community

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 84: 3087950-84.patch, failed testing. View results

Vidushi Mehta’s picture

Status: Needs work » Needs review
samiullah’s picture

@vidushi tests seem to be failing, probably needs rework

pameeela’s picture

Status: Needs review » Needs work
lauriii’s picture

Re #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.

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

ameymudras’s picture

Status: Needs work » Needs review
StatusFileSize
new234.52 KB
new6.23 KB
new4.88 KB

For 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

sonam.chaturvedi’s picture

Status: Needs review » Needs work

Patch #101 did not apply successfully on 9.5.x-dev version.

Checking patch core/themes/claro/css/components/dropbutton.css...
error: while searching for:
.dropbutton__item:first-of-type ~ .dropbutton__item > *:focus { /* 1 */
  box-shadow: inset 0 0 0 1px #26a769, 0 0 0 1px #26a769;
}
error: patch failed: core/themes/claro/css/components/dropbutton.css:439
error: core/themes/claro/css/components/dropbutton.css: patch does not apply

Moving to Need works

lucassc’s picture

Status: Needs work » Needs review

I had no problems applying the patch, it still applies to 9.5.x-dev (fresh install).

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

deepalij’s picture

Status: Needs review » Needs work

Patch #101 applied successfully on 9.5.x-dev version, but not on 10.1.x-dev version

Checking patch core/themes/claro/css/components/ajax-progress.module.css...
error: while searching for:
  border: 1px solid rgba(216, 217, 224, 0.8);
  border-radius: 3.5rem;
  background: #fff;
  box-shadow: 0 0.25rem 0.625rem rgba(34, 35, 48, 0.1);
}

.ajax-progress__throbber--fullscreen,

error: patch failed: core/themes/claro/css/components/ajax-progress.module.css:105
error: core/themes/claro/css/components/ajax-progress.module.css: patch does not apply
Checking patch core/themes/claro/css/components/ajax-progress.module.pcss.css...
Hunk #1 succeeded at 30 (offset -2 lines).
Hunk #2 succeeded at 122 (offset -2 lines).
Hunk #3 succeeded at 148 (offset -14 lines).
Checking patch core/themes/claro/css/components/dropbutton.css...
error: while searching for:
.dropbutton__item:first-of-type ~ .dropbutton__item > *:focus { /* 1 */
  box-shadow: inset 0 0 0 1px #26a769, 0 0 0 1px #26a769;
}

error: patch failed: core/themes/claro/css/components/dropbutton.css:439
error: core/themes/claro/css/components/dropbutton.css: patch does not apply
Checking patch core/themes/claro/css/components/dropbutton.pcss.css...
Hunk #1 succeeded at 397 (offset -13 lines).
Checking patch core/themes/claro/css/components/tabledrag.css...
Hunk #1 succeeded at 393 (offset -2 lines).
Checking patch core/themes/claro/css/components/tabledrag.pcss.css...
Hunk #1 succeeded at 336 (offset -9 lines).

Moving to needs work

sakthivel m’s picture

Status: Needs work » Needs review
StatusFileSize
new4.45 KB

#107 Please review the patch

Aamir M’s picture

StatusFileSize
new70.1 KB

Patch #107 was applied successfully on 10.0.x-dev version only
Failed for 9.5.x-dev and 10.1.x-dev

Aamir M’s picture

Status: Needs review » Needs work

rpayanm made their first commit to this issue’s fork.

sahil.goyal’s picture

Version: 10.1.x-dev » 9.5.x-dev
Status: Needs work » Needs review
StatusFileSize
new4.45 KB
new4.56 KB

hi, 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

Arti Anil Pattewar’s picture

Patch #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...

Arti Anil Pattewar’s picture

Status: Needs review » Needs work

Changing status to needs work.

sahil.goyal’s picture

StatusFileSize
new4.48 KB

Oh!, I've unable to notice some css in dropbutton.css file, as noticed i'll updating the patch.

Arti Anil Pattewar’s picture

StatusFileSize
new4.51 KB

Able to apply #113. Resolved indentation issue from cc failed.

Arti Anil Pattewar’s picture

StatusFileSize
new979.55 KB

After applying patch #113 the Progress throbber position is on text only.

akram khan’s picture

Status: Needs work » Needs review
StatusFileSize
new4.4 KB
new3.06 KB

Fixing Custom command failed for both #113 and #114

akram khan’s picture

Status: Needs review » Needs work
sakthivel m’s picture

Status: Needs work » Needs review
StatusFileSize
new4.42 KB

#118 Fixing Custom command failed

Status: Needs review » Needs work

The last submitted patch, 118: 3087950-118.patch, failed testing. View results

lauriii’s picture

Issue tags: +Field UX
lauriii’s picture

Version: 9.5.x-dev » 10.1.x-dev

Utkarsh_33 made their first commit to this issue’s fork.

utkarsh_33’s picture

StatusFileSize
new107.3 KB

Patch #106 with some modifications.

utkarsh_33’s picture

Status: Needs work » Needs review
bnjmnm’s picture

Status: Needs review » Needs work
dsandhya’s picture

StatusFileSize
new1.73 KB

I have created this patch for 10.1.x-dev and its working fine. Please verify.

lauriii’s picture

Thank you @dsandhya! It looks like the approach that you are trying is pretty close to what we'd want. However, it requires using position: absolute which 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.

utkarsh_33’s picture

Status: Needs work » Needs review
hooroomoo’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community
StatusFileSize
new121.92 KB
new10.57 KB

In table:

In modal:

hooroomoo’s picture

Added a change record for the new data attribute "data-drupal-ajax-container"

lauriii’s picture

Updating credits

shivam2812’s picture

I want to Work on this issue can i get assigned??

bnjmnm’s picture

Updating credits

  • bnjmnm committed d84c8f8c on 10.1.x
    Issue #3087950 by Utkarsh_33, swatichouhan012, komalk,...

bnjmnm’s picture

This 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

Drupal code quality checks failed.
To reproduce this output locally:
* Apply the change as a patch
* Run this command locally: sh ./core/scripts/dev/commit-code-check.sh
OR:
* From the merge request branch
* Run this command locally: sh ./core/scripts/dev/commit-code-check.sh --branch 10.1.x

I also noticed that comment #9 from October 2019 suggested the approach that ultimately was used

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.

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.

bnjmnm’s picture

Version: 10.1.x-dev » 10.0.x-dev
Status: Reviewed & tested by the community » Patch (to be ported)

This bugfix is worth backporting. It currently does not apply to 10.0.x, however

  • lauriii committed 3de7cd3b on 11.x authored by bnjmnm
    Issue #3087950 by Utkarsh_33, swatichouhan012, komalk,...
gauravvvv’s picture

Status: Patch (to be ported) » Needs review
StatusFileSize
new4.68 KB

I have attached patch for 10.0.x. please review

smustgrave’s picture

Status: Needs review » Needs work

Seems reroll for 10.0.x had some issues.

gauravvvv’s picture

Status: Needs work » Needs review

Tests seems passing now.

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Reroll seems to be passing.

  • bnjmnm committed 992ce828 on 10.0.x
    Issue #3087950 by Utkarsh_33, swatichouhan012, komalk,...
bnjmnm’s picture

Status: Reviewed & tested by the community » Fixed

Backported 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-container attribute 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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.