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 icon alignment #7996
Fix link icon alignment #7996
Conversation
Build files for 03fd24e have been deleted. |
Size Change: +1.25 kB (0%) Total Size: 1.41 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @tofumatt – there was only one thing I found that needed fixing which I just pushed a fix for
// Set the prefix/suffix icons, based on the type of link this is and | ||
// the props supplied. | ||
let leadingIconToUse = leadingIcon; | ||
let trailingIconToUse = trailingIcon; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO if an icon is passed as a prop, it should override the default icons that are related to specific kinds of links as below. It's fine for now but just a thought.
VRT failed in the last run before it was able to get to the comparison but passed in the previous. The only thing that changed were the Jest snapshot files and the JS tests are passing now so this is good to go now 🚀 |
Summary
Addresses issue:
Relevant technical choices
I've reverted the earlier changes I made here, and fixed the ellipsis issue and the "Editin" issues. I've also audited all of the link components with icons and combined them to be consistently output using
IconWrapper
, which wasn't happening before, hence the mish-mash of bugs surrounding various icons.PR Author Checklist
Do not alter or remove anything below. The following sections will be managed by moderators only.
Code Reviewer Checklist
Merge Reviewer Checklist