Zur Navigation Zum Inhalt Kontakt Menu Trouver un composant Aperçu Lyne 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 fonctionnelles 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 Base Composants Aperçu Base Composants Overview Releases Design Tokens Komponenten Aperçu Base Informations Sens & objectif Community Assets Instructions Power-Apps Bandeaux publicitaires numériques SAP Icônes d’applications Cette page n'est pas disponible dans la langue souhaitée. Langues disponibles Deutsch English Tertiary Button (Link) Implementation

The sbb-tertiary-button-link component provides the same functionality as a native <a>,
despite its appearance as a button enhanced with the SBB Design in the 'tertiary' variant.

<sbb-tertiary-button-link href="https://www.sbb.ch">Button text</sbb-tertiary-button-link>

Slots

The text is provided via an unnamed slot; the component can optionally display a sbb-icon
at the component start using the iconName property or via custom content using the icon slot.
At least one is mandatory, so you can have a sbb-tertiary-button-link with icon only, text only, or with both.

<sbb-tertiary-button-link href="https://www.sbb.ch" icon-name="info">
  Button text
</sbb-tertiary-button-link>

<sbb-tertiary-button-link href="https://www.sbb.ch">
  <sbb-icon slot="icon" name="info"></sbb-icon>
  Button text
</sbb-tertiary-button-link>

<sbb-tertiary-button-link
  href="https://www.sbb.ch"
  icon-name="info"
  aria-label="Click for more information."
></sbb-tertiary-button-link>

Link properties

The component is internally rendered as a link,
accepting its associated properties (href, target, rel and download).

<sbb-tertiary-button-link
  href="https://github.com/lyne-design-system/lyne-components"
  target="_blank"
>
  Go to site
</sbb-tertiary-button-link>

Style

The component has a negative variant which can be set using the negative property.

There are two different sizes (m and l, which is the default) that can be set using the size property.

The component can be displayed in disabled state using the self-named property.

<sbb-tertiary-button-link href="https://www.sbb.ch" negative>Button</sbb-tertiary-button-link>

<sbb-tertiary-button-link href="https://www.sbb.ch" size="m">Button</sbb-tertiary-button-link>

<sbb-tertiary-button-link href="https://www.sbb.ch" disabled>Button</sbb-tertiary-button-link>

Focus outline

Please make sure that the focus outline appears in the correct color if the component is used on a dark background.
You can set it by re-defining the css var on sbb-tertiary-button-link or any parent element:

sbb-tertiary-button-link {
  --sbb-focus-outline-color: var(--sbb-focus-outline-color-dark);
}

Accessibility

Use the accessibility properties in case of an icon-only button to describe the purpose of the sbb-tertiary-button-link for screen-reader users.

Properties

Name Attribute Privacy Type Default Description
size size public SbbButtonSize | undefined 'l' Size variant, either l or m.
negative negative public boolean false Negative coloring variant flag.
iconName icon-name public string | undefined The icon name we want to use, choose from the small icon variants from the ui-icons category from here https://icons.app.sbb.ch.
disabled disabled public boolean false Whether the component is disabled.
href href public string | undefined The href value you want to link to.
target target public LinkTargetType | string | undefined Where to display the linked URL.
rel rel public string | undefined The relationship of the linked URL as space-separated link types.
download download public boolean | undefined Whether the browser will show the download dialog on click.

Slots

Name Description
Use the unnamed slot to add content to the tertiary-button-link.
icon Slot used to display the icon, if one is set
Beispiele
Default
Negative
Disabled
Negative Disabled
Icon Only
Icon Only Negative
Icon Only Disabled
No Icon
Size M
Size S
Fixed Width
With Slotted Icon
Loading Indicator
With Hidden Slotted Icon
HTML-Markup kopiert.
Playground
Label
Grössen M L Icon Ja Nein Label Ja Nein Negativ Nein Ja Hintergrund White Milk Iron Charcoal Black
Impressum Contact Paramètres des cookies