-
Notifications
You must be signed in to change notification settings - Fork 1
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
[Links] Show external-link icon where applicable #768
Conversation
@natalia-fitzgerald Please follow-up with devs on how we want to handle external links where the icon wraps to a new line. One potential solution is to use the Link component's
|
@meissadia |
@natalia-fitzgerald On large mobile (width: 425px)
|
3d8363e
to
ce2d3b0
Compare
@meissadia |
Implemented |
Going to start deploying this now! |
It's up on Dev @meissadia and @natalia-fitzgerald! |
@meissadia Assessment of no wrapAfter additional consideration, I recommend that we handle external links the way we handle any link + icon. My preference is to follow the CFPB Design System and cf.gov website approach to link + icon, unless we identify a problem with this general approach. I believe that the standard approach in the DS and on cf.gov is to allow wrapping of links with and without icons. Is that your understanding? Here's a link to the link + icon section in the CFPB Design System. One odd line break I saw was for Global LEI Foundation (GLEIF) where the no wrap made this stay on one line instead of wrapping and created awkward white space. Here the wrap solution is preferable.
When does an external link icon appear next to a link?On cf.gov, we use the external links icon for links to pages that take you outside of the CFPB sphere of webpages, examples on the beta platform would be Login.gov, the Federal Reserve, GLEIF, etc. In terms of what's shown on Dev it seems like the external link is being added to any link any link that will take you outside of the beta platform, even links to cf.gov content, for example the filing instructions guide and iRegs. If we go with the approach of only including the external link icon for links that take you out of the CFPB sphere of webpages, the number of instances would be greatly reduced, and this task would be a lot narrower. I recommend we take that approach. I noticed some odd outlier behaviors that we should address:Dotted underline extending under the icon
Dotted underline is missing
Links to the same pages sometimes have an external link icon and sometimes don't.
|
@natalia-fitzgerald Thanks you very much for the detailed review!! This is phenomenal guidance for my next steps.
|
Fixed a bug that was causing one space to appear instead of the intended two. ## Changes - src - pages - Filing - FilingApp - InsitutionHeading.tsx: Replaced double spaces with double unicode non-breaking spaces. ## How to test this PR 1. Pull the branch 2. Relaunch whatever is necessary 3. Navigate to a page in the app that contains the Filing Steps and the Institution Heading 4. Verify that the pipe character is surrounded by two spaces in the Institution Heading. The attached screenshot has a red box which surrounds the area to check. ## Screenshots ![Screenshot 2024-10-17 at 12 27 18 PM](https://github.com/user-attachments/assets/06b50ca5-76fb-4920-849c-47e67e5b1537)
…#1001) closes #997 ## Changes - style(Point of Contact): Phone Extension always gets its own line - content(Point of Contact): Change the helper and error text to match the figma - feat(Point of Contact): Phone Extension validation ## How to test this PR 1. Navigate to Point of Contact 2. Enter valid phone extension - ex. 00757 3. Enter invalid phone extension - ex ukhi778ih89h98h9h9h89h ## Screenshots <img width="534" alt="Screenshot 2024-10-15 at 3 08 40 PM" src="https://github.com/user-attachments/assets/7ed7bae8-9bc0-489f-9e63-a7748e8b9582"> --------- Co-authored-by: Tanner Ricks <182143365+tanner-ricks@users.noreply.github.com>
task: [Link] Refactor to simplify implied usage of RouterLink
task: Link - Consider `mailto:` links as internal
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.
Heyo! A couple changes needed here.
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.
Heyo! Just summarizing our review from yesterday @meissadia:
- Let's keep the underline for emails (like on the authenticated landing page), maybe take a quick look at why the underline is removed there when it's considered internal now?
- Add an exception to the
_blank
logic for iRegs links and filing instruction guides, maybe based on the url?
We'll handle more external link logic at a later date.
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.
@meissadia
The external links icon work looks good on dev pub. We plan to create a more logical system for when links should and shouldn't open in a new tab so I'm fine with the in between implementation since we'll iterate on this soon. Here's the spike issue where Dan and I are discussing this behavior. cfpb/sbl-ux#18
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.
Code looks good, thanks for the fixes!
Close #765
Changes
internal vs external
links and add icon where appropriatemailto:
links are treated asinternal
<Link>
use the SBL Link for consistent styling and functionalityisRouterLink
propScreenshots
Filing home
Filing landing
Filing overview
Filing upload
Filing errors
Filing warnings
Filing Point of Contact
Filing Sign and Submit
User profile