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

DS-771 Carousel breaks inside layout grid #2497

Merged
merged 5 commits into from Jun 28, 2022

Conversation

MarcinMr
Copy link
Collaborator

Jira

https://pegadigitalit.atlassian.net/browse/DS-771

Summary

The carousel placed inside .l-bolt-site should stay centered without left or right misaligning.

Details

The carousel should have an active slide centered horizontally in the viewport in all carousel variations such as these below:

  • buttons inside
  • buttons outside
  • buttons inside with a property overflow set to true
  • buttons outside with a property overflow set to true
  • all slides per view examples (with buttons inside and outside, with and without overflow prop)

How to test

Pull the beach. Go to the /pattern-lab/?p=tests-carousel-in-layout and see the carousel variations. Check if the carousel's active slide is always centered.

@github-actions github-actions bot added the type: bugfix List this PR in the 'Bug Fixes' section of the release notes. label Jun 21, 2022
Copy link
Collaborator

@danielamorse danielamorse left a comment

Choose a reason for hiding this comment

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

@MarcinMr I think you found the root issue, nicely done! It seems there were rules applying only to "no-overflow" that should've applied to both "overflow" and "no-overflow".

I used the test page to reproduce the old bug and to verify the fix 🎉

@danielamorse danielamorse merged commit 81bfee3 into master Jun 28, 2022
@danielamorse danielamorse deleted the bugfix/DS-771-Carousel-breaks-inside-layout-grid branch June 28, 2022 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bugfix List this PR in the 'Bug Fixes' section of the release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants