-
Notifications
You must be signed in to change notification settings - Fork 158
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
[Link with icon]: Icon placement not changing #7074
Comments
just ran into this while working on #6265, I have a potential fix but just need design confirmation on what the behavior should be when icon placement is on the left and text is wrapping, since the icon wraps inline with text when it's placed on the right side (most of the time) related #5705 #6812 cc @shixiedesign |
this may also be a storybook only issue as it seems to function properly when the icon placement knob is changed and the storybook canvas is opened in a new tab |
Here's the link with icon text wrapping spec & example. @emyarod |
possibly related storybookjs/storybook#16682 |
### Related Ticket(s) #7074 ### Description - This PR fixes the issue where the `left` icon placement is not aligning to the left-hand side. ### Changelog **Changed** - Adjust styling in the shared `_link-with-icon.scss` style and clean up duplicate styling. ### Testing Instruction - Visit the "Link with Icon" component - Adjust the "Icon Position (icon-placement)" knob to `left` - Ensure that the placement of the icon is in alignment with the design specs. <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
Engineering info:
Describe the issue:
The Link With Icon's icon placement is not changing if chosen to be on the left, stays right.
Link with icon
Web Components Canary
Steps to reproduce the issue (if applicable):
icon-placement
knob to leftThe text was updated successfully, but these errors were encountered: