Updated: December 5, 2023

Tags

FUIButton

Intro

Tags are used to display quick and useful bits of information to the user, such as keywords, labels, categories, or statuses.  

Examples of different buttons
Examples of different buttons

Usage

Tags display complementary information that relates to the object. They use a different visual representation than plain text and serve as independent bits of information. When incorporating tags into your app, it is crucial to keep the following aspects in mind: 

Do
  • Keep tag labels concise. 
  • It is recommended to maintain wording to a maximum of two words per tag.
    d
Positive example for showing concise tags in a tag row in a card
Positive example for showing concise tags in a tag row in a card
Don't
  • Don’t write full sentences within a tag. 
  • Don’t place icons or images within a tag. 
  • Don’t overload the user by including an excessive number of tags or very long text values. 
Negative example for listing an excessive number of tags in an object cell and placing icons in a tag
Negative example for listing an excessive number of tags in an object cell and placing icons in a tag

Anatomy

A. Container 

The are two styles available for containers: filled and outlined. 

B. Label 

The label indicates keywords or other bits of information. 

Anatomy of a tag
Anatomy of a tag

Behavior and Interaction

Tags are not interactive. If there is more than one tag, they line up in a horizontal layout one after the other. The tag row can be configured to wrap to the next line depending on the parent container. 

Variations

Tags are not interactive. If there is more than one tag, they line up in a horizontal layout one after the other. The tag row can be configured to wrap to the next line depending on the parent container. 

Style

A. Filled 

The default tag has a filled background. 

B. Outlined 

Optionally, the tag can have a transparent background with an outline. 

Active, tapped, disabled, keyboard-focused, VoiceOver-focused buttons
Active, tapped, disabled, keyboard-focused, VoiceOver-focused buttons

Color

Default vs. Accent 

The default tag color is grey, but it can also be displayed in many different colors of the accent color palette. 

Tag style options: filled and outlined
Tag style options: filled and outlined

Resources

Development: FUISearchTags

SAP Fiori for Android: Tags

SAP Fiori for Web: Tags