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

Revert "Add support for trailing and leading visual icons in Primer::Beta::Link (#2982)" #3040

Merged
merged 2 commits into from
Aug 29, 2024

Conversation

camertron
Copy link
Contributor

This reverts commit b5b0199.

Hey @HDinger, apologies! I had to revert this because I found a visual issue with underlining that I think we should address before trying to merge this in again. I didn't notice it before because underlining was turned off in the previews I looked at.

Specifically, this looks a little wonky to me:

Screenshot of the link component with leading and trailing visuals. The link underline extends too far to the left and right.

The underlined text (initially and on hover) extends past the beginning and end of the text. I think we should probably render the icons outside the <a> tag itself and set their foreground color to the link color.

Copy link

changeset-bot bot commented Aug 29, 2024

🦋 Changeset detected

Latest commit: a16f5a1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/view-components Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@camertron camertron marked this pull request as ready for review August 29, 2024 21:51
@camertron camertron requested a review from a team as a code owner August 29, 2024 21:51
@camertron camertron merged commit 612307d into main Aug 29, 2024
37 checks passed
@camertron camertron deleted the revert_link_icons branch August 29, 2024 21:51
@primer primer bot mentioned this pull request Aug 29, 2024
HDinger added a commit to opf/primer_view_components that referenced this pull request Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant