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

Feat: external link icon #1540

Merged
merged 4 commits into from
Jul 18, 2023
Merged

Feat: external link icon #1540

merged 4 commits into from
Jul 18, 2023

Conversation

angela-tran
Copy link
Member

Closes #1471

Also closes #1478 , closes #1484

This PR assumes that all external links have an attribute of target="_blank" and adds an icon after the link.

Footer links

image

Eligibility index

image

Help page

image

@angela-tran angela-tran self-assigned this Jul 17, 2023
@angela-tran angela-tran requested a review from a team as a code owner July 17, 2023 22:54
@github-actions github-actions bot added i18n Copy: Language files or Django i18n framework front-end HTML/CSS/JavaScript and Django templates deployment-dev [auto] Changes that will trigger a deploy if merged to dev and removed i18n Copy: Language files or Django i18n framework labels Jul 17, 2023
@angela-tran
Copy link
Member Author

angela-tran commented Jul 17, 2023

We'll need a separate ticket to update the Help copy

The screen in Figma doesn't always include a period, but when it does, the period is a part of the link:
image

Copy link
Member

@thekaveman thekaveman left a comment

Choose a reason for hiding this comment

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

This is looking great! Small comment below and some questions out to Design, but this seems like a clean way to do it.

@@ -142,6 +142,25 @@ a:visited:not(.btn) {
color: var(--selected-color);
}

[target="_blank"]::after {
Copy link
Member

Choose a reason for hiding this comment

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

I think at a minimum we want to add the element here:

Suggested change
[target="_blank"]::after {
a[target="_blank"]::after {

Is targeting all links with _blank enough? Too much? Is it consistent practice to make external links open in new tabs?

Asking Sarah some related questions on the Figma board:

@thekaveman thekaveman added this to the Veterans milestone Jul 18, 2023
Copy link
Member

@thekaveman thekaveman left a comment

Choose a reason for hiding this comment

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

👍

@angela-tran angela-tran merged commit bc49146 into dev Jul 18, 2023
7 checks passed
@angela-tran angela-tran deleted the feat/external-link-icon branch July 18, 2023 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment-dev [auto] Changes that will trigger a deploy if merged to dev front-end HTML/CSS/JavaScript and Django templates
Projects
None yet
2 participants