Buttons and Links

Buttons

Es stehen einige Buttons und Links in verschiedenen Stilen zur Auswahl. Einige davon können beliebig verwendet werden, andere haben einen bestimmten Verwendungszweck. Die folgenden Beispiele zeigen auch mögliche Kombinationen von Klassen.

Info: Mit der zusätzlichen Klasse button--fullwidth-palm kann der Button bei kleinen Viewports auf die volle Seitenbreite gezogen werden.

There are a few buttons and links in various styles to choose from. Some of them can be used in any way, but others have specific purposes. The examples below show also possible combinations of classes.

Info: With the class button--fullwidth-palm in addition to the other classes for the button, the button can be pulled to the full width on smaller viewports.

Default Button

Der Default Button ist der primäre Button des Vertical und für alle Hauptfunktionalitäten gedacht.

The Default Button is the primary button of the vertical and should be used for all main functionalities.

button.button

HTML
<button type="button" class="button">Default Button</button>

Light Button

Der Light Button ist der sekundäre Button des Verticals und für untergeordnete Funktionalitäten zu verwenden.

The Light Button is the secondary button of the vertical and should be used for subordinate functionalities.

button.button.button--light

HTML
<button type="button" class="button button--light">Light Button</button>

Light Colored Button

button.button.button--light.button--colored

HTML
<button type="button" class="button button--light button--colored">Light Colored Button</button>

White Button

Der white Button kann auf dunklem Hintergrund verwendet werden, beispielsweise in einem Panel dark oder Panel colored.

The white button can be used on a dark background, e.g. in a dark panel or colored panel.

.button.button--white

Negative Button

Der Negative Button kann auf dunklem Untergrund genutzt werden und hat einen weißen Rahmen sowie einen transparenten Hintergrund.

The Negative Button can be used on a dark background and has a white border and a transparent background.

.button.button--negative

Negative Light Button

.button.button--negative.button--light

Fulltone Button

Der Fulltone Button ist ein vollfarbiger Behelfs-Button und sollte nur in Ausnahmefällen genutzt werden.

The fulltone button is has a fulltone colored background and should only be used in exceptional cases.

button.button.button--fulltone

HTML
<button type="button" class="button button--fulltone">Fulltone Button</button>

Light Fulltone Button

button.button.button--light.button--fulltone

HTML
<button type="button" class="button button--light button--fulltone">Light Fulltone Button</button>

Mit dem Clean Button ist es möglich die meisten Styling Attribute des Buttons zu entfernen. Es bleibt nur das Padding - Rahmen, Farben und Icons werden zurückgesetzt.

Most of the styling attributes of the button can be removed with the Clean Button. All that remains is the padding – the border, colors and icons are reset.

button.button.button--clean

Button as Link

Ein Button, der jedoch aussieht wie ein klassischer Link kann mithilfe der Klasse link hinzugefügt werden.

A button that looks like a classic link can be added with the class link.

button.link

HTML
<button type="button" class="link">Button as Link</button>

Special Buttons

Die nachfolgenden Buttons sind speziell für einen Verwendungszweck konzipiert worden und dürfen auch nur für diesen eingesetzt werden.

The following buttons have been designed for specific purposes and may only be used for these purposes.

HTML
<button type="button" class="button button--download">Download Button</button>
HTML
<button type="button" class="button button--play">Play Button</button>
HTML
<button type="button" class="button button--search">Search Button</button>
HTML
<button type="button" class="button button--addtocart">In den Warenkorb</button>
HTML
<button type="button" class="button button--filter">Filter</button>
HTML
<button type="button" class="button button--booking">      
    <span class="price">9 €</span>
    <span class="text">Jetzt buchen</span>
</button>
HTML
<button type="button" class="button button--extern">Extern</button>
HTML
<button type="button" class="button button--plus">Plus</button>
HTML
<button type="button" class="button button--close" title="Schließen" aria-label="Fenster Schließen"></button>
HTML
<button type="button" class="link link--back">Back button als Link</button>

Links

Der A-Tag ohne weitere Klasse stellt einen Link im Standarddesign bereit.

The A-tag without any other classes provides a link in the standard design.

a

Default Link
HTML
<a href="#randomtarget4969">Default Link</a>

Link as Button

Ein A-Tag mit der Klasse button erhält das Aussehen eines Buttons im Design des Verticals.

An A-tag with the class button has the appearance of a button in the design of the vertical.

a.button

Link as Button
HTML
<a href="#randomtarget6068" class="button">Link as Button</a>
Link as disabled Button
HTML
<a href="#randomtarget9548" class="button button--disabled" target="#">Link as disabled Button</a>

Special Links

Die nachfolgenden Links sind ebenfalls für einen bestimmten Verwendungszweck konzipiert und dürfen nur für diesen angewendet werden. Wichtig ist an dieser Stelle, dass externe Links als solche gekennzeichnet sein müssen um die Barrierefreiheit zu gewährleisten.

The following links have also been designed for specific purposes and may only be used for these purposes. It’s important here to identify external links as such to ensure accessibility.

Externer Link
HTML
<a href="#randomtarget8824" class="extern">Externer Link</a>
Read more
HTML
<a href="#randomtarget7500" aria-label="Title of teaser or name of linktarget" title="Title of teaser or name of linktarget" class="more">Read more</a>
1 Zum Warenkorb
HTML
<a href="#"  class="link--showcart">
    <span class="inner" aria-label="Artikel im Warenkorb">1</span>
    Zum Warenkorb
</a>
Back link
HTML
<a href="#randomtarget715" class="link--back">Back link</a>
Download
HTML
<a href="#randomtarget1657" aria-label="Descripe here the file to download" title="Descripe here the file to download" class="link--download" download>Download</a>
Mapmarker link
HTML
<a href="#randomtarget6052" class="link--mapmarker">Mapmarker link</a>
Homepage link
HTML
<a href="#randomtarget3400" class="link--homepage">Homepage link</a>
HTML
<a href="#randomtarget1079" class="link--email">Email link</a>
Hinzufügen
HTML
<a href="#randomtarget623" class="link--add">Hinzufügen</a>

A link with anchor text "Read more" has to be descriped for screen readers. But screen readers are interpreting links in different ways. As a best practice, we use identical "title" and "aria-label"-attributes. See the comparisson below why.

Info: The following content may be out of date

Links used for this test

  1. A) Different title and anchor text: Mehr   Markup: <a href=”#” title=”Beschreibung des Linkziels”>Mehr</a>
  2. B) Identical title and anchor text: Mehr   Markup: <a href=”#” title=”Mehr″>Mehr</a>
  3. C) Aria-label present besides anchor text: Mehr   Markup: <a href=”#” aria-label=”Hier geht es zum Linkziel”>Mehr</a>
  4. D) Both Aria-label and title present besides anchor text: Mehr   Markup: <a href=”#” aria-label=”Hier geht es zum Linkziel” title=”Beschreibung des Ziels”>Mehr</a>
  5. E) Identical Aria-label and title present besides anchor text: Mehr   Markup: <a href=”#” aria-label=”Hier geht es zum Linkziel” title=”Hier geht es zum Linkziel”>Mehr</a>

The Comparison

Screen Reader Output
Link JAWS NVDA Orca on Linux VO on OSX Lion VO on iOS (iPad)
A. Different title and anchor text: Anchor text + title Anchor text + title Anchor text + title Anchor text Anchor text + title
B. Identical title and anchor text: Anchor text Anchor text Anchor text Anchor text Anchor text + title
C. Aria- label present besides anchor text: Aria-label Aria-label Aria-label Anchor text + aria-label Aria-label
D. Both Aria-label and title present besides anchor text: Aria-label + title Aria-label + title Aria-label + title Anchor text + aria-label Aria-label + title
E. Identical Aria-label and title present besides anchor text: Aria-label Aria-label Aria-label ? ?
(source: www.deque.com)