Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SHS-5955: When first adding Footer Social Media Links there is strange scrolling when adding another link #1709

Merged
merged 6 commits into from
Jan 14, 2025

Conversation

codechefmarc
Copy link
Collaborator

@codechefmarc codechefmarc commented Jan 7, 2025

READY FOR REVIEW

Summary

  • Patches block_class module to fix the issue when clicking on our "Add another item" button in the social media block would scroll the modal to the bottom.
  • Updates block_class to version 4

Need Review By (Date)

2025-01-08

Urgency

low

Steps to Test

  1. Login to the site as a developer role
  2. Go to the Block layout page /admin/structure/block
  3. Place the social media block in the footer region
  4. Under the "Links" area in the block form, click "Add another item"
  5. Verify that the modal will show the new URL/Label for the newly added item, and not scroll all the way to the bottom of the modal.

Screenshot 2025-01-07 at 11 06 19 AM

PR Checklist


@ahughes3 ahughes3 temporarily deployed to Tugboat January 7, 2025 18:04 Destroyed
@codechefmarc codechefmarc requested review from callinmullaney and cienvaras and removed request for cienvaras January 7, 2025 19:36
@codechefmarc codechefmarc self-assigned this Jan 7, 2025
@codechefmarc codechefmarc marked this pull request as ready for review January 7, 2025 19:37
Copy link
Collaborator

@cienvaras cienvaras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codechefmarc Works great, thanks!

@ahughes3 Ready for you to review.

@cienvaras cienvaras assigned ahughes3 and unassigned codechefmarc Jan 7, 2025
@cienvaras cienvaras requested review from ahughes3 and removed request for callinmullaney January 7, 2025 22:11
Base automatically changed from 11.6.1-release to develop January 8, 2025 16:39
@ahughes3 ahughes3 assigned pookmish and unassigned ahughes3 Jan 13, 2025
Copy link
Collaborator

@ahughes3 ahughes3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ahughes3 ahughes3 temporarily deployed to Tugboat January 13, 2025 19:53 Destroyed
composer.json Outdated
@@ -229,6 +229,9 @@
"extra": {
"enable-patching": true,
"patches": {
"drupal/block_class": {
"Click JavaScript to close details causes modals to scroll unnecessarily https://www.drupal.org/project/block_class/issues/3497768": "https://git.drupalcode.org/project/block_class/-/merge_requests/60.patch"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have been avoiding git url patches because if the branch changes, it can cause problems. Download the patch into the repo and reference it via relative path.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to patch in repo.

@ahughes3 ahughes3 temporarily deployed to Tugboat January 14, 2025 00:35 Destroyed
@codechefmarc codechefmarc changed the base branch from develop to 11.6.3-release January 14, 2025 00:35
@ahughes3 ahughes3 temporarily deployed to Tugboat January 14, 2025 00:51 Destroyed
@codechefmarc codechefmarc requested a review from pookmish January 14, 2025 01:02
@pookmish pookmish merged commit 0d41267 into 11.6.3-release Jan 14, 2025
17 checks passed
@pookmish pookmish deleted the SHS-5955--fix-modal-scroll branch January 14, 2025 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants