Components/Action Bar

fd-action-bar · 8 examples from SAP's documentation · Back to the gallery

About

The action bar displays at the top of the page, and includes the page’s title, description, back button and action buttons.

**Use action bar if:** - You want to control the settings of the UI, which affects all items. - You want to display actions at the top of the screen. For the page title, a Title component is utilized that is an H1 but visually styled as an H3. As the first heading on the page, for accessibility purposes it must be an H1. See the Title component page for further information on semantic versus visual heading levels. **Do not use action bar if:** - You want to display finalizing actions at the bottom of the screen. Instead, use the **Bar** component and choose a footer. Note: You may want to display components from right to left on the screen for international purposes. To display them as such, add the \ **Use action bar if:** - You want to control the settings of the UI, which affects all items. - You want to display actions at the top of the screen. For the page title, a Title component is utilized that is an H1 but visually styled as an H3. As the first heading on the page, for accessibility purposes it must be an H1. See the Title component page for further information on semantic versus visual heading levels. - You want to display finalizing actions at the bottom of the screen. Instead, use the **Bar** component and choose a footer. Note: You may want to display components from right to left on the screen for international purposes. To display them as such, add the \

Default

The default action bar displays a page title, description, back button and action buttons. To display a back button, add the `fd-action-bar__description--back` modifier class to the description element.

No back button

This action bar doesn’t display a back button.

No description

This action bar doesn’t display a description.

Descriptive

The descriptive action bar displays a long page title and description.

Contextual

The contextual action bar displays a page title and contextual menu with several main actions. To display a contextual menu, add the `fd-popover` class to the`fd-action-bar__actions` element.

Responsive (M-L)

This action bar is responsive and fits the M and L sizes required for tablet and small desktop screens. To display this size, add the `fd-action-bar--m\\_l` modifier class to the main element.

Responsive (XL)

This action bar is responsive and fits the XL size required for larger screens of 1440px or more. To display this size, add the `fd-action-bar--xl` modifier class to the main element.

Mobile

This action bar is mobile responsive. To display the mobile action bar, add the `fd-action-bar--s` modifier class to the main element.