Principi Base Accessibilité Sistema di design Guidelines Deutsch Français Italiano English I nostri principi di design Soluzioni focalizzate sull’utente Riconoscibilità Inclusione Riduzione Olistico Autoesplicativo Orientamento all’attività Adeguatezza Portale della marca FFS Logo Orologio digitale Diritti di utilizzazione Colori die base Colori addizionali Colori Off Brand Icone Icone dell'orario Pittogrammi Informazioni sull’accessibilità Über diesen Guide Contatti Letture consigliate Product Owner User Research Interaction Design Visual Design Development Content Design Testing What is a design system? Designing Coding FAQ Aiuto Processo Contribution Contatto Introduzione Base Componenti Introduzione Releases Design Tokens Componenti Introduzione Base Informations Introduzione Base Componenti Introduzione Power-Apps Banner pubblicitari digitali SAP IA Design : Base. Icone delle app Questa pagina non è disponibile nella lingua desiderata. Lingue disponibili: Deutsch English Teaser-Hero Info

Was macht die Komponente?

Ein Teaser ist eine Vorschau, der Nutzende neugierig machen und sie dazu anregen soll, auf weitere Inhalte oder Seiten zu klicken.

Wann soll die Komponente eingesetzt werden?

  • Um Inhalte, Artikel, Produkte oder Dienstleistungen hervorzuheben und zu bewerben.
  • Um Nutzende auf weiterführende Informationen oder interessante Inhalte aufmerksam zu machen.

Regeln

  • Verwende eine prägnante und einladende Überschrift sowie eine kurze, interessante Beschreibung.
  • Verwende nicht zu viele verschiedene Teaser-Arten- und Grössen auf einer Seite.
  • Mehrere Teaser können mit einem Titel strukturiert werden.
Teaser Teaser-Product Teaser-Product-Static Image
Anatomie

Anatomie der Komponente


Nummer Typ Beschreibung Optional Hinweis
1 Komponente sbb-image Nein
2 Komponente sbb-chip Ja
3 Text Nein
4 Text Link-Text Nein
Demo

Spielwiese

Break out and explore castles and palaces. Kurzer Link
Chip label
Link Label Kurz Zu lang Chip oben, links oben, rechts unten, links unten, rechts Nein Mode (System-Einstellung) Light Dark Hintergrund White Midnight Milk Charcoal Cloud Iron Midnight White Charcoal Milk Iron Cloud
Default Teaser
Open In New Window
With Chip
Chip Only
HTML in Zwischenablage kopiert.
Implementation

The sbb-teaser-hero is a component with a background image and an action call within a panel;
it should be an eye-catcher and should have an emotional effect on the user with its large image component.

Slots

It is possible to provide the panel label via an unnamed slot,
while the link text can be provided using the link-content slot or the linkContent property;

Use the image slot to pass an sbb-image or an img that will be used as background.

<sbb-teaser-hero href="https://www.sbb.ch">
  Break out and explore castles and palaces.
  <span slot="link-content">Find out more</span>
  <sbb-image slot="image" image-src="https://path-to-source" alt="SBB CFF FFS Employee"></sbb-image>
</sbb-teaser-hero>

Optionally, you can add an overlapping sbb-chip-label or image (e.g. logo) by wrapping the sbb-image
in a figure tag (see sbb-image doc).
If the sbb-chip-label or the image (e.g. logo) should appear on top of the red panel (e.g. on small screens),
you need to set a z-index on the sbb-chip-label or the image (e.g. logo).
Otherwise, it stays behind the red panel.

<sbb-teaser-hero href="https://www.sbb.ch">
  Break out and explore castles and palaces.
  <span slot="link-content">Find out more</span>
  <figure slot="image" class="sbb-figure">
    <sbb-image image-src="https://path-to-source" alt="SBB CFF FFS Employee"></sbb-image>
    <sbb-chip-label class="sbb-figure-overlap-start-start" style="z-index: 1">
      Chip label
    </sbb-chip-label>
    <img
      class="sbb-figure-overlap-image sbb-figure-overlap-end-end"
      src="logo.png"
      alt="Logo"
      style="z-index: 1"
    />
  </figure>
</sbb-teaser-hero>

Accessibility

The description text is wrapped into an p element to guarantee the semantic meaning.

Avoid slotting block elements (e.g. div) as this violates semantic rules and can have negative effects on screen readers.

Properties

Name Attribute Privacy Type Default Description
accessibilityCurrent accessibility-current public string '' This will be forwarded as aria-current to the inner anchor element.
accessibilityLabel accessibility-label public string '' This will be forwarded as aria-label to the inner anchor element.
download download public boolean false Whether the browser will show the download dialog on click.
href href public string '' The href value you want to link to.
linkContent link-content public string '' Panel link text.
rel rel public string '' The relationship of the linked URL as space-separated link types.
target target public LinkTargetType | string '' Where to display the linked URL.

Slots

Name Description
Use the unnamed slot to add text content to the panel
chip The sbb-chip-label component that will be displayed on top-left corner
image The background image that can be a sbb-image
link-content Link content of the panel