Visitar URL original
Finalize link guidance by thisisdano · Pull Request #1249 · uswds/uswds-site · GitHub
Skip to content

Finalize link guidance - #1249

Merged
thisisdano merged 8 commits into
mainfrom
dw-finalize-link-guidance
Jul 30, 2021
Merged

thisisdano merged 8 commits into
mainfrom
dw-finalize-link-guidance

Conversation

@thisisdano

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor 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
Copy Markdown
Contributor 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

Comment thread package.json Outdated
"sass": "^1.35.1",
"snyk": "^1.667.0",
"uswds": "^2.12.0",
"uswds": "github:uswds/uswds#dw-external-link",

Copy link
Copy Markdown
Contributor 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