Add an Accordion with Rich Content Editor

task brazil Updated Sep 10, 2026 6 min read ec-rich-content-editor-accordion.md
Raw file servicenow.com

Add an accordion component to the canvas to design content that can be expanded or collapsed.

Before you begin

Role required: sn_cd.content_manager

Fill in the New content form fields. See Create rich content

Create the page layout using modules or columns.

Procedure

  1. Navigate to the canvas by selecting the Open editor button from the Design tab of the New content form.

  2. Drag and drop the accordion component into the canvas.

  3. Configure accordion component behavior and toggle/button design, and add more panels.

  4. Navigate to the Settings > Properties section to configure the accordion component:

Settings field

Description

Panel behavior

Expand first panel on load

Selecting this option loads the accordion with the content in the first panel visible.If you deselect this option, the accordion loads with all the panels closed.

Allow multiple panels to expand

Selecting this option allows employees to expand multiple panels at once.If you deselect this option, when an employee expands a panel, the currently expanded panel automatically closes.

Button design

Style

Select the style of the accordion button, or toggle, that employees click to expand and close panels.

Size

Use the up and down arrows to adjust the size of the buttons.

Placement

Specify whether the buttons appear to the left or right of the accordion titles.

Color

Use the color picker (checkered square) to select a color or enter the color code that represents the color you want to appear.All HTML colors are supported. For more information, see HTML color names.

5. To add more panels to the accordion, click **Add item**, located in **Settings** > **Properties**.
  1. Configure the accordion styling, such as background color or border. Click the outer component container (Accordions) to configure all the panels at once. To configure individual panels, click the respective containers.
  2. Navigate to the Settings panel to configure the following styling settings:

Settings field

Description

Styling

Background Color

Use the color picker (checkered square) to select a color or enter the color code that represents the background color you want to appear.All HTML colors are supported. For more information, see HTML color names.

Advanced styling

Width

Specify the value by entering a number or dragging the right side of the cell.Select the unit of measure:

  • px: pixel
  • %: percentage

Padding

Padding is the space between content and the border of an element. Specify the value for top, bottom, right, or left padding by entering a number.

Margin

Margin is the space between a row and another element/the canvas boundary. Specify the value for top, bottom, right, or left padding by entering a number.

Border

Edit the border around the outside of the button.Note: The border is the outline around the button.

Width: Use the up and down arrows to adjust the width of the border. Just like the width and height, you can choose the unit of measure you prefer by selecting the single down arrow key to the left of the up and down arrows.

Style: The format of the border around the button. Select the drop-down to select the type of border you want around the button.

Color: The color of the border around your button. Select the color of your button using the color palette and slide bars similar to how you select your background color.

Border radius

Use the up and down arrows to adjust the radius of the border. Just like the width and height, you can choose the unit of measure you prefer by selecting the single down arrow key to the left of the up and down arrows.

8. Format accordion title text. 9. To format the accordion title text, click the **Accordion Title** container and navigate to the **Settings** > **Styling** section.

Settings field

Description

Styling

Text style

Allows you to quickly change the look of your text by selecting a pre-formatted choice. You can select different headlines or paragraph styles.Headline 1-6 corresponds to h1 - h6 HTML tags.

Text color

Use this drop-down to change the color of your text. Your choices are:

  • Primary: The primary color defined by your portal theme.
  • Muted: The color defined by your portal theme.
  • White: Changes the color of your text to white. This is useful when using a background color other than white. Text color assigns predefined CSS classes for text color.

Display

Configure the appearance of multiple components within the same column, such as an image and a text component. Select from the following options:- Top and bottom (default): Image appears above the other component.

  • Side by side: Image appears with the other component next to it. Note: For best results, set the same display for the components. For example, if you have an image and text components in a column and want the image to appear on the left and the text to appear at the right, change the Display settings for both components to Side by side.

Align

Determines the horizontal alignment of your text. Choose from:- Left justify

  • Center justify
  • Right justify
  • Justify (text is aligned with both margins)

Advanced styling

Padding

Padding is the space between content and the border of an element. Specify the value for top, bottom, right, or left padding by entering a number.

Margin

Margin is the space between a row and another element/the canvas boundary. Specify the value for top, bottom, right, or left padding by entering a number.

Font name

Defines the font face used to render characters.Click the drop-down arrow to select a different font.

Font size

Sets the size of the font.

Font weight

Determines how bold or light your text appears.Click the drop-down arrow to select a different weight.

Line height

Sets the vertical distance between two lines of text.

Font color

Overrides the font color from your portal theme.To select a color, enter the hex code or click the color picker (grey square to the right of the font color) and select a color from the color palette.

10. Build out the accordion content by adding images, videos, text, or links to the panels.
  1. Select Save or Save and Finish.

    Selecting Save saves your content and you remain on the Rich Content Editor canvas. Selecting Save and Finish saves your record and returns you to the New content form.

What to do next

  • (Optional) Translate your content.

    Request language translation for your content. For more information, see Multilingual support in the Content Library.

    Note: Only translate content after you are done modifying the content. For best results, we do not recommend that you add or remove components or change the formatting after translation.

    To create rich content that is formatted differently in different languages, duplicate the content and modify the formatting as needed. Then, use Audiences to target the content to users by language. See Audiences

  • Preview your content from the Publish tab.

    Note: Content Preview is designed to provide a general idea of how your content looks. Content may look different once published due to variations in device resolution, theme difference, or mobile app style configuration.

  • Configure a publish plan to control where the content is delivered, the audience, and the period of time it is available: Create a publish plan for your content.

Search documentation
Search document titles and file paths on the brazil branch