Problem/Motivation

In the Umami Demo home page tour, the close button moves slightly when hovering. See screen recording for reference.

Steps to reproduce

  1. Install Drupal using the Umami Demo profile.
  2. Go to the home page.
  3. Click on the Tour link in the upper right.
  4. Hover on the close button of popup.
  5. Result: Close button moves slightly upon hover.
  6. Expected: Button should not move on hover.

Proposed resolution

Adjust the CSS slightly to address.

Remaining tasks

  1. Create patch
  2. Test patch
  3. Review patch
  4. Commit

User interface changes

API changes

Data model changes

Release notes snippet

Comments

Gauravmahlawat created an issue. See original summary.

gauravvvv’s picture

StatusFileSize
new459 bytes

I have added a patch, Please review if it's working or not.

gauravvvv’s picture

Status: Active » Needs review
kristen pol’s picture

Thanks for the issue and patch.

  1. Checked the patch applies cleanly to Drupal 9.3, 9.4, and 10.
  2. Needs testing so tagging.
  3. Assume tests don't need to be added since this is a visual bug that would be difficult to create a test for.
  4. CSS change is simple though not sure this is the best approach.
  5. Issue summary could use the issue summary template so tagging.
kristen pol’s picture

Issue summary: View changes
StatusFileSize
new239.78 KB

Updated the steps to reproduce and linked to the screen recording.

Satyajit1990’s picture

hi @Kristen Pol,

Issue has been verified with version 9.4 and It works for me
Patch : https://www.drupal.org/files/issues/2021-12-25/3256002-2.patch
Screen recording added in the file location

Note : Patch file is not working in 9.3

Satyajit1990’s picture

kristen pol’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community
Issue tags: -Needs manual testing, -Needs issue summary update

Thanks for testing. You wrote:

Note : Patch file is not working in 9.3

but I think that was due to you using DrupalPod and/or simplytest.me and the tools weren't/wasn't working. I see that the Umami Demo profile doesn't work with simplytest.me right now and, since this issue is marked for 9.4, I don't think it can be tested with 9.3 on DrupalPod right now unless we switch the version on the issue.

But, I have found out from @catch that when the patch applies to more than one version, we can just test on 9.4 or 10, i.e. we don't have to test on all versions... just ones with different MRs/patches.

Note, in the future, if you add a new comment with new attachments, please explain why in the comment.

I've updated the issue summary.

Marking RTBC based on the above though I'm not sure the CSS approach is the best way to fix.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 2: 3256002-2.patch, failed testing. View results

kristen pol’s picture

Status: Needs work » Reviewed & tested by the community

Unrelated failure. Back to RTBC.

lauriii’s picture

Status: Reviewed & tested by the community » Needs work
+++ b/core/profiles/demo_umami/themes/umami/css/components/tour/tour.theme.css
@@ -7,6 +7,7 @@
+  border: 2px solid transparent;

I don't think adding a transparent border is an ideal solution for this because transparent borders can become visible with forced colors.

kristen pol’s picture

@lauriii Thoughts on a different approach? Add a margin?

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.

vulcanr’s picture

StatusFileSize
new518 bytes

Adding patch with negative margins on hover, which will allow the button to stay in place after adding border

vulcanr’s picture

Status: Needs work » Needs review
ameymudras’s picture

StatusFileSize
new529 bytes
new559 bytes

Fixing lint issue with the above patch

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.

kristen pol’s picture

Issue tags: +Needs manual testing

Tagging for testing

deepalij’s picture

StatusFileSize
new298.21 KB
new302.46 KB

Applied patch #16 cleanly on Drupal 9.5.x-dev and 10.1.x-dev.

The issue got fixed for 9.5.x-dev but it's still be seen on 10.1.x-dev

Refer attached videos for 9.5.x-dev.

Need to re-roll for 10.1.x-dev

gaurav-mathur’s picture

StatusFileSize
new6.15 MB
new7.85 MB

Applied patch#16 on Drupal 9.5.x-dev it works fine now button is still their at place on hover too
Need to re-roll for 10.1.x-dev
Refer to the attached videos

gauravvvv’s picture

StatusFileSize
new634 bytes
new460 bytes

Instead of adding margin in negative, we can use border with currentColor. I have attached a patch for same. Also added an interdiff for same.

Please review.

deepalij’s picture

Applied patch #21 on Drupal 10.1.x-dev.
Patch applied cleanly

The issue got resolved after applying the patch.
Not adding video as its same as #19

RTBC+1

deepalij’s picture

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

Thanks everyone for great, thorough work here! I'm saving the issue credits, so taking some notes about who is credited and how, and advice for contributors.

  1. Crediting @Gauravmahlawat for the original issue report, the original patch. and work on it since.
     

  2. Creditng @lauriii for committer review.
     

  3. Crediting @vulcanr and @ameymudras for coming up with a new implementation based on @lauriii's feedback.
     

  4. Crediting @Satyajit1990 for the original video demonstrating the bug. I had to slow it to half speed and zoom in on the element, but I finally saw the "wiggle" in the before screenshots. Thanks for that manual testing! Next time, I would suggest cropping your video to only the affected portion of the screen so it's easier for reviews to understand and see.
    nbsp;

  5. For @DeepaliJ: Thank you for reviewing this issue!

    Your before-and-after videos in #19 were helpful for me to understand the bug. Same advice as above; please crop them to only the affected portion of the screen. Thanks

    Also, regarding #22, the automated testing infrastructure tells us whether the change set still applies, so we do not need people to review that. It is also not sufficient criteria for the issue to be marked "Reviewed and Tested by the Community".

    What we do need people to review is whether the issue has a correct scope, whether it passes the core gates, whether the solution completely fixes the problem without introducing other problems, and whether it's the best solution we can come up with. See the patch review guide for more information.

    When you do post a review, be sure to describe what you reviewed and how with more specific details and steps. This helps other reviewers understand why you considered the issue RTBC (and is considered for issue credit).

    Also see the issue credit guidelines for more information on which kinds of contributions are credited. In this case, you are still getting credit for the manual testing. 🙂
     

  6. A reminder for @Kristen Pol to embed your UI changes screenshots in the issue summary. 🙂 Credited for manual testing and mentoring on the issue.
     

  7. @gaurav-mathur, your comment just repeated automated testing that had been done by @DeepaliJ on the exact same patch, weeks after they did that work. That's a duplicate effort that adds noise to issues. So I am not crediting it. In the future, I suggest reading existing comments thoroughly and paying close attention to the next steps to receive credit.

I think this issue should have a final review from one of the frontend framework managers before it goes in to make sure it's the right approach, but I wanted to save time for them by taking care of the issue credit processing part of the review. 🙂

xjm’s picture

Issue summary: View changes

Hm I see, @Kristen Pol's screenshot was not of the correct UI element. Removing from summary. Sorry for the noise!

bnjmnm’s picture

Status: Reviewed & tested by the community » Needs work
StatusFileSize
new135.9 KB

#21 adds an unwanted white border around the close button. A transparent border would probably work, though.

gauravvvv’s picture

Status: Needs work » Needs review
StatusFileSize
new459 bytes
new494 bytes

Addressed #26. Attached patch along with interdiff. please review

smustgrave’s picture

Status: Needs review » Needs work
Issue tags: +Needs screenshots

Would be useful to have before/after screenshots in the issue summary.

gauravvvv’s picture

Status: Needs work » Needs review
Issue tags: -Needs screenshots
StatusFileSize
new8.89 MB
new5.02 MB

Attached before patch and after patch mov clips. please review

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Thanks @Gauravvv!

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 27: 3256002-27.patch, failed testing. View results

gauravvvv’s picture

Status: Needs work » Reviewed & tested by the community

Restoring status, unrelated failure.

  • lauriii committed 2295e6ed on 10.1.x
    Issue #3256002 by Gauravvv, ameymudras, vulcanr, DeepaliJ, Satyajit1990...

  • lauriii committed ad79e8ca on 10.0.x
    Issue #3256002 by Gauravvv, ameymudras, vulcanr, DeepaliJ, Satyajit1990...
lauriii’s picture

Version: 10.1.x-dev » 9.5.x-dev
Status: Reviewed & tested by the community » Fixed
Issue tags: -Needs manual testing, -Needs frontend framework manager review

Looks like I adviced against the transparent border in #11. As a second thought, it seems fine to have the transparent border appear in forced colors mode since it's a button.

Committed 2295e6e and pushed to 10.1.x. Cherry-picked to 10.0.x and 9.5.x. Thanks!

  • lauriii committed 152c4236 on 9.5.x
    Issue #3256002 by Gauravvv, ameymudras, vulcanr, DeepaliJ, Satyajit1990...

Status: Fixed » Closed (fixed)

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