Components/Message Strip

fd-message-strip · 10 examples from SAP's documentation · Back to the gallery

About

Message Strip is a component that enables the embedding of application-related messages in the application. They are useed to draw the user’s attention to information that is important in the context of the page content. This could be a warning or a change of state, that would be easy to miss it.

**Use the message strip if:** - You want to provide information within the detail area of an object. - You want to inform your user about a status of an object. - You want to warn your user about an issue. **Do not use the message strip if:** - You want to display information within the object page header, a control, in the master list, or above the page header. - Container - holds the icon, text and Close button. - Icon (optional) - graphic element within the component. Use the modifier class \ **Use the message strip if:** - You want to provide information within the detail area of an object. - You want to inform your user about a status of an object. - You want to warn your user about an issue. - You want to display information within the object page header, a control, in the master list, or above the page header.

Default

The default message strip can be used for general messages that don’t fit into any of the semantic type use cases.

Information Bar

This is a message.

Information

To display an information message strip, add the `fd-message-strip--information` modifier class to the main element.

Information Bar Closable

Information Message Strip

Success

To display a success message strip, add the `fd-message-strip--success` modifier class to the main element.

Success Information Bar Closable

Success Message Strip

Warning

To display a warning message strip, add the \

Warning Information Bar Closable

Warning Message Strip

Error

To display the error message strip, add the \

Error Information Bar Closable

Error Message Strip

No icon

To display message strip without an icon, add the `fd-message-strip--no-icon` modifier class to the main element. Add the `fd-message-strip--dismissible` modifier class if the element is dismissible.

Information Bar Closable

Information Message Strip

Success Information Bar Closable

Success Message Strip

Warning Information Bar Closable

Warning Message Strip

Error Information Bar Closable

Error Message Strip

No icon and no dismiss button

To display message strip without an icon, add the `fd-message-strip--no-icon` modifier class to the main element.

Information Bar

Information Message Strip

Success Information Bar

Success Message Strip

Warning Information Bar

Warning Message Strip

Error Information Bar

Error Message Strip

Text with link

The Link inside Message Strip has additional styling. Add the fd-message-strip--link modifier class if the message contains a link element. The MessageStrip can include multiple links—not just one. This allows applications to provide additional context or actions related to the message, such as links to: Other apps where the issue originated Apps where the issue can be resolved Related objects or specific sections Help documentation

Custom icon

The message strip can be customized by changing the status icon. Check <a href=

Information Bar

Message with a custom icon

Error Information Bar Closable

Error Message Strip

Custom Message Strip

If the application needs a custom Message Strip, other than the semantic variations, then the colours from Inverted Object Status/Tag control should be used. Use the modifier classes \