Principles Foundation Accessibility Design System Guidelines Deutsch Français Italiano English Our design principles User-centred Recognisable Inclusive Reduced Holistic Self-explanatory Task-oriented Appropriate SBB Brand portal Logo Digital clock Rights of use Base colors Additional colors Off brand colors Icons Timetable icons Pictograms About accessibility Über diesen Guide Contact Further information Product Owner User Research Interaction Design Visual Design Development Content Design Testing What is a design system? Designing Coding FAQ Help Process Contribution Contact Overview Base Components Overview Releases Design Tokens Components Overview Base Informations Overview Base Components Overview App Icons Power-Apps Digital banner ads SAP Design Guidelines AI Design: Basics Sidebar-Content Info

What does the component do?

It is part of the sidebar component.

When should the component be used?

  • Only within the sidebar component.
Sidebar
Demo Default
Copy HTML to clipboard.
Implementation

The sbb-sidebar-content is a container which should be used inside a sbb-sidebar-container to wrap the content.

<sbb-sidebar-container>
  <sbb-sidebar role="navigation">Sidebar Content</sbb-sidebar>
  <sbb-sidebar-content role="main"></sbb-sidebar-content>
</sbb-sidebar-container>

Accessibility

The <sbb-sidebar-content> should be given a role based on what it contains. If it
represents the primary content of the page, it may make sense to mark it role="main". If no more
specific role makes sense, role="region" is a good fallback.

Use with sbb-header

Check sbb-sidebar-container on how to
position and connect the sbb-header with the sbb-sidebar-content.

Slots

Name Description
Use the unnamed slot to add any content elements. Further sbb-sidebar-containers are possible.