Panels are used to encapsulate part of the content, form elements, lists, collections, etc., on a page.
Place patterns and interactions within panels on your pages to achieve focus and separation for the tasks at-hand with the information displayed inside the panel.
Although the following examples use the <h3> tag for the title element, the styling provided by SAP Fundamentals will remain consistent for any heading level used. <h1> should be reserved for the page title.
Elements
.fd-panel__title: Title of the panel.
.fd-panel__description: Title of the description.
.fd-panel__actions: Panel level actions such as add, remove, delete, sort, etc.
.fd-panel__filters: Panel level filters that is specific to the data being displayed within the panel.
.fd-panel__body: Main content of the panel can that hold lists, table, tree, text, form or any other infomation.
.fd-panel__footer: Panel footer can be utilized for pagination, secondary actions, add more data, etc.
.fd-panel__title
.fd-panel__description
.fd-panel__actions
.fd-panel__filters
.fd-panel__body
Panel Grid
Available since 1.0.0
Use a panel grid to arrange panels evenly in a grid layout.
This uses CSS grid which is not supported by some older browsers. A flexbox fallback is included but it is recommended you test your page if you have a significant number of users on IE 11, for example.
Default Panel Grid (3 columns)
.fd-panel
.fd-panel
.fd-panel
.fd-panel
.fd-panel
Panel Grid with --nogap
The .fd-panel-grid-nogap modifier will remove margins between the panels.
.fd-panel
.fd-panel
.fd-panel
.fd-panel
.fd-panel
Panel Grid with 1 column
The .fd-panel-grid--1col modifier will render a 1 column grid.
.fd-panel
.fd-panel
.fd-panel
.fd-panel
Panel Grid with 2 columns
The .fd-panel-grid--2col modifier will render a 2 column grid.
.fd-panel
.fd-panel
.fd-panel
.fd-panel
Panel Grid with 4 columns
The .fd-panel-grid--4col modifier will render a 4 column grid.
.fd-panel
.fd-panel
.fd-panel
.fd-panel
.fd-panel
.fd-panel
.fd-panel
.fd-panel
Panel Grid with 5 columns
The .fd-panel-grid--5col modifier will render a 5 column grid.
.fd-panel
.fd-panel
.fd-panel
.fd-panel
.fd-panel
.fd-panel
.fd-panel
.fd-panel
.fd-panel
.fd-panel
Panel Grid with 6 columns
The .fd-panel-grid--6col modifier will render a 6 column grid.
.fd-panel
.fd-panel
.fd-panel
.fd-panel
.fd-panel
.fd-panel
.fd-panel
.fd-panel
.fd-panel
.fd-panel
.fd-panel
.fd-panel
Panel Grid with column span
The .fd-has-grid-column-span-[num] modifier will render a 6 column grid. [num] option ranges from 2 to 6