Record tags

Tags allow users to assign categories to records.

Overview

  • Release version
    Yokohama
  • Available sinceQuebec
  • A11Y WCAG 2.1 AA

Anatomy

Learn about the individual parts of the record tags component.

Main anatomy

record tags component main anatomy
  1. Icon: Shows tag feature status and opens popover to add, delete, or assign tags
  2. Popover header: Identifies all tags
  3. Popover: Displays tag search field and any current tags
  4. "Add tags" title: Identifies search function for tag labels
  5. Pill: Shows current tags with option to delete
  6. Label: Shows who can view the record tags
  7. Search field: Displays tag search and auto-populates text
record tags component modal anatomy
  1. Container: Includes the header, tag name, and viewing options
  2. Menu title: Declares tag is visible to all users, specific groups of users, or a single user
  3. Close icon: Closes the modal and returns to the record
  4. Dropdown icon: Expands dropdown menu to select viewing status
  5. Dropdown menu: Offers selections of tag viewing status
  6. Primary action button: Saves record tag changes
  7. Secondary action button: Cancels record tag changes
  8. Value title: Displays current selected viewing status
  9. Value input: Displays tag name
  10. Input title: Displays input field name
  11. Heading: Identifies the modal and its contents

Usage

Learn about the record tags component and how to create, edit, and assign record tags. The user can click the tag icon to bring up the tag popover. In the popover, the user can search for a pre-existing tag and add it to the record.

new record tag creation

The user can also click a previously saved record tag (pill) to open the viewing preferences and edit the tag name.

record tags component edits

In the popover, the user can delete any tags associated with the record or click a saved record tag that opens the record tag modal.

record tags component selection

In the modal, the user can rename the tag, and set record tag sharing levels.

Variants

Learn about the atrributes of record tags.

Types

There is only one type of record tags component, and it always displays within the header of the incident child tab.

Sizes

The record tags component icon has only one size and does not change or truncate in any screen size.

Configurations

Learn how to customize activity stream by configuring the available properties.

Presets and controllers

This component contains a preset configuration that automatically configures properties and event handlers for a component, making the component ready to work when you add it to a page. A preset is designed to suit a specific use case. However, you can override preset property values with a custom configuration if you find it necessary for your design. Preset values that you override aren’t upgraded when updates are available. If you don’t want to use the preset values provided, select the option to configure the component manually. You can apply one preset to a single instance of a component on a page. For more information, see Presets.

A preset is always associated with a controller, which acts as a data resource for the component. Controllers provide the configuration data and event bindings the component needs to function in your experience. By selecting a preset, the required controller is added to the page. By adding a controller to the page, any new applicable components will have that controller's preset. For more information about how controllers work, see Controllers. For instructions on using the data inspector to view the default presets for a component, see View properties and events in the Controller API.

Show/hide component

You can choose to show or hide the record tags component based on the experience you're creating for the user.

record tags component hides tags in form header

In this example, the Hide Tags checkbox has been selected

Design recommendations

Learn how to apply the record tags component in your design.

record tags component with icon positioned next to header
Do

Place the record tag icon next to the header group, so the user understands the group it belongs to.]

record tags component with icon positioned away from header
Don’t

Avoid separating the record tag icon from the header group, or the user might not notice its context.

Alignment and positioning

By default, record tags should appear embedded in the record header, unless configured otherwise.

record tag positioning in header

UI text guidelines

These are some recommendations for using text within the record tags component.

  • Use sentence case for all titles, labels, and column headers
  • Keep all text labels short and informative to increase
  • Keep content concise and purposeful to provide value to the user
  • Capitalize only the first letter and any proper nouns in a string of
  • Ensure content is contextual and specific to offer guidance and

Behavior

Learn how the record tags component behaves when the display changes or a user interacts with the component.

States

The record tags component icon has 4 states: empty state, value state, multiple-value state, and disabled state.

Empty state

record tags component empty state

In this example, the record tags component icon is empty

Value state

record tags component value state

In this example, the record has a single tag

Multiple-value state

record tags component multiple-value state

In this example, the record has multiple tags

Disabled state

record tags component disabled state

In this example, the record tags component is disabled.

Responsive behaviors

The record tags component icon doesn't change size or orientation and is responsive at all screen sizes. The icon stays left aligned with the header of the incident child tab. The record tags component modal expands to fit an entire screen for mobile layouts.

record tags component modal in a responsive layout

The popover is not responsive and can't be put in a smaller container than the desktop size.

record tags component responsive layout

In this example, the record tags component's responsive layout is displayed when making the container smaller.

Interactions

A user can click the tag icon to initiate a new tag.

new tag initiation

A user can type in the value field to search for a tag name in the database.

tag name search

A user can click a saved tag to open the preferences.

open preferences

Truncation

When text in the record tags popover exceeds its maximum width, the text truncates with an ellipsis and a tooltip shows the full content on hover.

record tags component popover text truncation

In this example, the record tags component popover shows truncation of text overflow.

Usability

The record tags component complies with all internationalization and accessibility requirements.

Internationalization

When a popover translates to a right-to-left (RTL) language, the content aligns on the right.

record tags component internationalization

In this example, the record tags component text alignment displays internationally.

Accessibility

Learn how to access the actionable elements of the record tags component through keyboard interactions and screen readers.

Keyboard interactions

  • Tab: Allows user to shift the focus of screen elements in sequential order (top to down, right to left, etc.)
  • Shift+Tab: Moves focus in the opposite direction of the tabbing focus (for example, focus moves from a record tag menu to the record tag search field).
  • Enter/Space: Used to execute all actions/selections.
  • Up/Down arrows: When focus is inside the record tag modal, the up and down arrow keys are used to move between the menu options.

Screen readers

When you apply ARIA labels to a component, the screen readers announce the controls and content of the record tags component in the prescribed tab order.

  1. Search bar: "search field"
  2. Tag icon: "create new record tag"