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

fix(carousel): Fix gap calculation #12179

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

marcelojcs
Copy link
Contributor

Related Ticket(s)

JIRA

Description

PR To address the carousel component gap distance not being calculated properly. causing the slotted components to scroll too much and appear cropped.

Changelog

Changed

changed the _updateGap function to calculate the gap value based on the margin of the fist element.

Testing instructions

Open the carousel components on storybook and see that it scrolls properly and there are no regressions.

@marcelojcs marcelojcs requested a review from a team as a code owner January 6, 2025 21:41
@marcelojcs marcelojcs requested review from m4olivei, bruno-amorim and Valentin-Sorin-Nicolae and removed request for a team January 6, 2025 21:41
Copy link

netlify bot commented Jan 6, 2025

Deploy Preview for ibm-dotcom-web-components-react-wrap ready!

Name Link
🔨 Latest commit 8b5fa07
🔍 Latest deploy log https://app.netlify.com/sites/ibm-dotcom-web-components-react-wrap/deploys/6788160a1c9c3d00083c5ef8
😎 Deploy Preview https://deploy-preview-12179--ibm-dotcom-web-components-react-wrap.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jan 15, 2025

Deploy Preview for ibm-dotcom-web-components ready!

Name Link
🔨 Latest commit 8b5fa07
🔍 Latest deploy log https://app.netlify.com/sites/ibm-dotcom-web-components/deploys/6788160a67fbc800085dd196
😎 Deploy Preview https://deploy-preview-12179--ibm-dotcom-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jan 15, 2025

Deploy Preview for incomparable-wisp-8d6771 ready!

Name Link
🔨 Latest commit 8b5fa07
🔍 Latest deploy log https://app.netlify.com/sites/incomparable-wisp-8d6771/deploys/6788160ac1c0320008e1320d
😎 Deploy Preview https://deploy-preview-12179--incomparable-wisp-8d6771.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants