Problem/Motivation

Throbber on the autocomplete fields is not positioned correctly. I was able to track down that this regression is caused by #3085245: Un-inline SVGs in pcss.css files, add build tool to inline them when compiled.

Steps to reproduce

  1. Go to /admin/structure/views/add
  2. Start writing anything on the "tagged with" field

Proposed resolution

Position the throbber correctly in the autocomplete field

Remaining tasks

Issue fork drupal-3167369

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

lauriii created an issue. See original summary.

lauriii’s picture

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.

quietone’s picture

Status: Active » Postponed (maintainer needs more info)
Issue tags: +Bug Smash Initiative
Related issues: +#3087950: Progress throbber position is incorrect
jeroent’s picture

I don’t think they are duplicates. This issue is about the throbber in autocomplete fields.

#3087950: Progress throbber position is incorrect is abouth the throbber next to dropbuttons.

quietone’s picture

Status: Postponed (maintainer needs more info) » Active

@JeroenT, thanks for the clarification.

I guess this can go back to active then.

Shiv Yadav’s picture

Assigned: Unassigned » Shiv Yadav
Shiv Yadav’s picture

Assigned: Shiv Yadav » Unassigned
Status: Active » Needs review
StatusFileSize
new1.65 KB
new31.7 KB
libbna’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new73.08 KB
new74.22 KB

The patch LGTM.
Before applying the patch the throbber was not in a right position but after applying the patch it is at right place. Added screenshots.

alexpott’s picture

Status: Reviewed & tested by the community » Needs work

We need to update core/themes/claro/css/components/autocomplete-loading.module.pcss.css and build the css by doing yarn run build:css in the core directory.

alexpott’s picture

Also I'm not convinced that swapping the svg for a gif is the correct fix.

ameymudras’s picture

StatusFileSize
new2.48 KB

Did some troubleshooting and looks like the SVG it self isn't created correctly. We might need to create a spinner svg again. In the mean time uploading the above patch by making the changes to pcss file.

ameymudras’s picture

Status: Needs work » Needs review
vinmayiswamy’s picture

I applied #15 patch against 9.5.x-dev and its working for me as expected.
Thanks @ameymudras

abhijith s’s picture

StatusFileSize
new42.46 KB

Applied patch #15 and it fixes the issue.Attaching recorded video after applying this patch.

asha nair’s picture

StatusFileSize
new17.72 KB
new15 KB

Applied patch #15 successfully in 9.5x and it works fine. Adding screenshots

rakesh.regar’s picture

StatusFileSize
new100.45 KB

#15 Patch applied cleanly and working fine in 9.5-dev
+RTBC

libbna’s picture

Status: Needs review » Reviewed & tested by the community

According to the above 3 reviews marking this as RTBC.

jeroent’s picture

Status: Reviewed & tested by the community » Needs work

The background image is still a gif in the latest patch instead of a svg.

Shubham Sharma 77’s picture

Status: Needs work » Needs review

JeroenT, SVG is not created correctly it is getting cut from top position.
So, I think we can use gif instead of svg.
We can move this ticket to RTBC.

jeroent’s picture

Status: Needs review » Needs work

Yeah, my point is, and also mentioned in #14, that we should fix the SVG.

libbna’s picture

Assigned: Unassigned » libbna

I will work on this.

libbna’s picture

Status: Needs work » Needs review
StatusFileSize
new1.6 KB
new3.89 KB
new4.68 KB

I have added background position to throbber svg as we don't want to change it to gif.

libbna’s picture

StatusFileSize
new1.6 KB
libbna’s picture

The command is failing because of autocomplete-loading.module.pcss.css is not updated. In #13 @alexpott
suggested that we should run yarn run build:css but when I run this command it removes the changes that I made on autocomplete-loading.module.css file.

Need some guidance in this. Thanks.

ranjith_kumar_k_u’s picture

StatusFileSize
new2.34 KB
new609 bytes
libbna’s picture

@ranjith_kumar_k_u did you manually updated the pcss file or did run any command?

libbna’s picture

Assigned: libbna » Unassigned
asha nair’s picture

StatusFileSize
new449.68 KB
new803 KB

Applied patch in #29 and it fixes the issue. Adding screenshots

ameymudras’s picture

Status: Needs review » Reviewed & tested by the community

Tested the above patch and it resolves the issue

larowlan’s picture

Removing issue credit for @rakesh.regar who added screenshots when someone else already had.

Retaining credit for @Asha Nair who did the same in #19 but then retested an untested patch in #32

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 29: 3167369-29.patch, failed testing. View results

ameymudras’s picture

Status: Needs work » Needs review
Aamir M’s picture

Assigned: Unassigned » Aamir M
Aamir M’s picture

Assigned: Aamir M » Unassigned
Status: Needs review » Reviewed & tested by the community
StatusFileSize
new260.25 KB
new316.7 KB

Patch #29 applied successfully and looks good to me.
After applying the patch the position of Autocomplete throbber is correct.

Videos are attached for reference.
Hence moved to RTBC

ckrina’s picture

Status: Reviewed & tested by the community » Closed (duplicate)
Related issues: +#3308733: Claro: "Spinner" loading icon not vertically aligned properly

Closing this issue as duplicated of #3308733: Claro: "Spinner" loading icon not vertically aligned properly in favor of the solutions used there because that is refactoring the SVG spinner code itself, so no extra code is added. Either way, thanks all for collaborating in this! (Moving the issue credit from here into that one)