Principes Bases Accessibilité Système de design Guidelines Deutsch Français Italiano English Nos principes de design Centré sur l’utilisateur Reconnaissable Inclusif Minimaliste Holistique Auto-explicatif Axé sur les tâches Approprié Portail de la marque CFF Logo Horloge numérique Droits d’utilisation Couleurs de base Couleurs supplémentaires Couleurs off-brand Icônes Icônes de l’horaire Pictogrammes À propos de l’accessibilité À propos de ce guide Contact Informations complémentaires Product Owner User Research Interaction Design Visual Design Development Content Design Testing What is a design system? Conception Développer FAQ Aide Procès Contribution Contact Aperçu Base Composants Aperçu Releases Design Tokens Composants Aperçu Base Informations Aperçu Base Composants Aperçu Power-Apps Bandeaux publicitaires numériques SAP IA Design : Bases Icônes d’applications Cette page n'est pas disponible dans la langue souhaitée. Langues disponibles: Deutsch English Link-List-Anchor Info

Was macht die Komponente?

Die Komponente bietet eine Sammlung von Links, die zu Inhalten der aktuellen Seite führen.

Wann soll die Komponente eingesetzt werden?

  • Um eine Übersicht der Inhalte der aktuellen Seite darzustellen.
  • Um Nutzenden schnellen Zugang zu Inhalten anzubieten.

Regeln

  • Verwende beschreibende und aussagekräftige Link-Texte, um den Zielinhalt verständlich zu machen.
  • Achte darauf, dass die Links in der Liste chronologisch geordnet sind.
Link-List Block-Link
Anatomie

Anatomie der Komponente


Nummer Typ Beschreibung Optional Hinweis
1 Komponente sbb-title Ja
1 Komponente sbb-block-link Nein
Demo

Spielwiese

Link 1 Link 2 Link 3
Titel Ja Nein Grössen XS S M Negativ Nein Ja Mode (System-Einstellung) Light Dark Hintergrund White Midnight Milk Charcoal Cloud Iron Midnight White Charcoal Milk Iron Cloud
Default
Size XS
Size M
Slotted Title
Negative
HTML in Zwischenablage kopiert.
Implementation

The sbb-link-list-anchor is a component that can be used to collect and display sbb-block-link.
It is mainly intended to be used as a link list for page anchors.

<sbb-link-list-anchor>
  <sbb-block-link href="#refunds">Refunds</sbb-block-link>
  <sbb-block-link href="#loss-report">Loss Report</sbb-block-link>
  ...
</sbb-link-list-anchor>

Slots

The component can display an optional title,
which is visually shown as a level-5 sbb-title
and is used as the aria-labelledby attribute of the ul element.

The title can be set using the titleContent property or, alternatively, can be projected using the title slot.

<sbb-link-list-anchor title-content="Help & Contact"> ... </sbb-link-list-anchor>

Style

The component will accept only sbb-block-link or sbb-block-link-button instances,
and it will sync its size and negative property with the inner links.

<sbb-link-list-anchor size="xs" negative>
  <sbb-block-link href="#refunds">Refunds</sbb-block-link>
  <sbb-block-link href="#loss-report">Loss Report</sbb-block-link>
  ...
</sbb-link-list-anchor>

Properties

Name Attribute Privacy Type Default Description
negative negative public boolean false Negative coloring variant flag.
size size public SbbLinkSize 's' / 'xs' (lean) Text size of the nested sbb-block-link instances. This will overwrite the size attribute of nested sbb-block-link instances.
titleContent title-content public string '' The title text we want to show before the list.
titleLevel title-level public SbbTitleLevel '2' The semantic level of the title, e.g. 2 = h2.

Slots

Name Description
Use the unnamed slot to add one or more sbb-block-link.
title Use this slot to provide a title.