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

Remove a-link--icon-before-text and a-link--icon-after-text #1987

Merged
merged 1 commit into from
May 30, 2024

Conversation

anselmbradford
Copy link
Member

@anselmbradford anselmbradford commented May 29, 2024

Jump links required both the a-link--jump and a-link--icon-after-text (or a-link--icon-before-text) modifiers to correctly layout with an icon. However, using flexbox we can have these links correctly layout whether or not they have an icon and whether or not it's on the left or right-hand side.

Removals

  • Remove a-link--icon-before-text and a-link--icon-after-text

Changes

  • Convert Jump Links to use flexbox.

Testing

  1. Visit https://deploy-preview-1987--cfpb-design-system.netlify.app/design-system/components/links and check out the jump links across screen sizes.

Screenshots

Screenshot 2024-05-29 at 6 01 40 PM Screenshot 2024-05-29 at 6 01 47 PM

Copy link

netlify bot commented May 29, 2024

Thanks for the improvements! Browse a preview of your changes using the link below.

Name Link
🔨 Latest commit c557ed9
🔍 Latest deploy log https://app.netlify.com/sites/cfpb-design-system/deploys/6657a517d312050008f35e6d
😎 Deploy Preview https://deploy-preview-1987--cfpb-design-system.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.

@anselmbradford anselmbradford added the lerna-changelog/enhancement lerna label. DO NOT MODIFY label May 29, 2024
Copy link
Member

@wpears wpears left a comment

Choose a reason for hiding this comment

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

Cool. Love these little changes that shave off the cruft

@anselmbradford
Copy link
Member Author

I realized this won't work out if we have a jump link that has an external icon, but I'll merge this and then open a follow up PR that handles that case and does some other cleanup.

@anselmbradford anselmbradford merged commit e91159d into main May 30, 2024
8 checks passed
@anselmbradford anselmbradford deleted the ans_icon_after_link branch May 30, 2024 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lerna-changelog/enhancement lerna label. DO NOT MODIFY
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants