Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Commit

Permalink
fix(link): add title attribute on external links
Browse files Browse the repository at this point in the history
  • Loading branch information
gillerr committed Dec 7, 2017
1 parent d295e75 commit eb35b8f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/locales/de/layout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,9 @@ typography:
Bei einem Link im Textfluss wird der verlinkte Text unterstrichen. Links in einem Navigations-Element (z.B. in der Globalnavigation) sind nicht blau, sondern grau. Aussehen und Verhalten dieser speziellen Links, wird in diesen Webrichtlinien an den entsprechenden Stellen separat beschrieben.
Mit den `.icon`-Klassen kann vor oder nach dem Link ein Icon hinzugefügt werden (Klasse`.icon--external` für externe Links).
release: |
**3.3.0**
- add `title="External link"` on external link for screen reader use
top-link:
title: Link zum Seitenanfang
help: |
Expand Down
3 changes: 3 additions & 0 deletions src/locales/en/layout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,9 @@ typography:
If there is a link in the running text, the linked text is underlined. Links in a navigation element (e.g. in the global navigation) are gray, and not blue. There are separate descriptions of how these special links are presented and how they behave at the appropriate places in these Web Guidelines.
You can use the `.icon` classes to add some icons after or before the link. Use `.icon--external` if the link is external.
release: |
**3.3.0**
- add `title="External link"` on external link for screen reader use
top-link:
title: Top link
help: The top link is the counterpart to the anchor link. It takes the user back to the beginning of the page from any position in the page currently in use.
Expand Down
3 changes: 3 additions & 0 deletions src/locales/fr/layout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,9 @@ typography:
dans le cas d’un lien situé dans le corps de texte, le texte muni du lien est souligné. Les liens situés dans un élément de navigation (p. ex. dans la navigation globale) ne sont pas bleu, mais gris. L’apparence et le comportement de ces liens spéciaux sont décrits séparément aux endroits appropriés dans les présentes lignes directrices pour le design web.
Les classes `.icon` permettent d’ajouter une icône avant ou après le lien (classe `.icon--external` pour les liens externes).
release: |
**3.3.0**
- ajout de l'attribut `title="External link"` sur les liens externes
top-link:
title: Lien vers le haut de page
help: |
Expand Down
2 changes: 1 addition & 1 deletion src/materials/01-layout/04-typography/08-links.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

<p>An <a href="#">internal link</a> in a paragraph.</p>

<p>An <a href="#" class="icon icon--after icon--external">external link</a> in a paragraph.</p>
<p>An <a href="#" class="icon icon--after icon--external" title="External link">external link</a> in a paragraph.</p>
<a href="#" class="icon icon--before icon--cart">link with icon</a><br>
<a href="#" class="icon icon--before icon--pdf">link with icon lorem <span class="text-dimmed">(PDF, 43 pages, 2Mb, English)</span></a><br>

0 comments on commit eb35b8f

Please sign in to comment.