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

Finalize link guidance #1249

Merged
merged 8 commits into from
Jul 30, 2021
Merged

Finalize link guidance #1249

merged 8 commits into from
Jul 30, 2021

Conversation

thisisdano
Copy link
Member

This PR finalizes our link guidance and adds the findings from our external link indicator research. It also adds external link icons to most text links throughout the site.

@thisisdano thisisdano requested a review from mejiaj July 29, 2021 04:17
Comment on lines +1433 to +1443
@include external-link(
usa-icons-bg/launch--blue-60v,
usa-icons-bg/launch--blue-70v
);
}

.usa-link--alt#{$external-href} {
@include external-link(
usa-icons-bg/launch--gray-5,
usa-icons-bg/launch--white
);
Copy link
Member Author

Choose a reason for hiding this comment

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

This adds icons of the proper color to non-.gov links. (There are existing rules that hide these icons on the nav, buttons, etc)

Comment on lines -3726 to -3729
[href^="http"]:not([href*=".gov"])::after {
display: none;
}

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed this rule to allow external link icons

package.json Outdated
@@ -93,7 +93,7 @@
"postcss-csso": "^5.0.0",
"sass": "^1.35.1",
"snyk": "^1.667.0",
"uswds": "^2.12.0",
"uswds": "github:uswds/uswds#dw-external-link",
Copy link
Member Author

Choose a reason for hiding this comment

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

Using an icon feature branch — this will need to be updated (and package-lock generated) after we merge that branch into develop

@thisisdano thisisdano merged commit 54e2f87 into main Jul 30, 2021
@thisisdano thisisdano deleted the dw-finalize-link-guidance branch July 30, 2021 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants