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(link-with-icon): fix icon placement #12159

Merged
merged 2 commits into from
Dec 11, 2024
Merged

Conversation

m4olivei
Copy link
Contributor

Related Ticket(s)

ADCMS-7258

Description

This corrects a bad prefix conversion from v1 to v2 that meant that the necessary styles required to correctly reflect the icon-placement="left" on a <c4d-link-with-icon> component were not present. Note that the way Storybook knobs work was hiding this issue in the Link with Icon story. The bug can be reproduced by going to the Link with icon story in the v2 Storybook, setting "Icon Position" to left, then opening in a new tab. Test in the deploy preview in the same way to ensure the bug is fixed.

Testing instructions

  • Open the Link with Icon > Default story
  • Set the "Icon Position" knob to left
  • Open in a new tab
  • Icon should now appear as expected
  • Also go through the Footer and Locale Modal stories to check the reported link icon is in the right spot.

Changelog

Changed

  • Fixed left icon placement in Link with icon component

Copy link

netlify bot commented Dec 11, 2024

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

Name Link
🔨 Latest commit 8516c52
🔍 Latest deploy log https://app.netlify.com/sites/ibm-dotcom-web-components/deploys/6759b66a1dab7f00086bd009
😎 Deploy Preview https://deploy-preview-12159--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
Member

@andy-blum andy-blum left a comment

Choose a reason for hiding this comment

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

This also fixes the bug seen in the current storybook where changing the icon position and then adding more items resulted in mixed placements.

@m4olivei m4olivei added the Ready to merge Label for the pull requests that are ready to merge label Dec 11, 2024
@kodiakhq kodiakhq bot merged commit 8459cc7 into release/v2.16.0 Dec 11, 2024
18 checks passed
@kodiakhq kodiakhq bot deleted the fix/link-with-icon branch December 11, 2024 20:30
Copy link
Contributor

Hey there! This issue/pull request was referenced in recently released v2.16.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready to merge Label for the pull requests that are ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants