Kubio – the kickstart

Find out how you can use Kubio for designing the website you envision.

Accordion block

Accordion block

Accordions can be used for structuring information and making it more accessible. They vertically stack headers that can be clicked to reveal or hide their content. You can drag the tab block to the section you want on your page from the block inserter, or add the block from any “+” sign on your canvas.

When you select the accordion block, you will see a toolbar on top of it, with several basic editing options. In a previous chapter, we explained the common editing options for all blocks. In the case of the accordion block, here are the ones that apply: positioning, duplicate, insert before, insert after, and remove block.

accordion block basic edits

Accordion block: customizations within the block editing panel

The moment you select any block, a block editing panel will be made available on the right-hand side. It always has three options: content, style, and advanced. The possibilities inside vary from block to block.

Let’s now check what’s specific to the accordion Gutenberg block across the “Content” and “Style” edits.

Content
accordion block - content edits

Accordions are made of accordion items. When opened, their content is inside paragraph blocks and can be edited as such.

At this level you can:

  • Set up which accordion item should open by default.
  • Select the active and normal icons.
  • Set up the icon size.
Style
Accordion block styling

Inside the Kubio editor, you can make styling changes across the accordion, icons, and content. Let’s take them one by one.

Accordion styling options:

  • Border
  • Radius

Titles can be styled across the normal, hover, and active states. You can customize the:

Icon styling options:

  • Icon position
  • Icon size
  • Icon color across the normal, hover, and active states

Content styling options:

Advanced

At this level, you can make edits for the normal, hover, and active states across the accordion, icons, titles, and content. Here are the available customizations:

  • Background. Here you can make adjustments to background color and type.
  • SpacingHere you can set up the margins and paddings for the accordion block items.
  • Border and shadowsHere you can add borders with a different color, radius and thickness to your block. Also, you can add box shadows. You have full control over the position, blur, spread, and color of the box shadow.
  • TypographyYou can set up a different font family, font size, and weight for the text. You can add decorations to text, set up capitalization, and adjust line height and letter spacing. When you select the “default” option you’ll be taken to the General Settings, where you can change defaults (color scheme, typography, etc.).
  • Responsive. Here you can decide whether the block will show or not on desktop, tablet, or mobile.
  • Miscellaneous. At this level, you can set up the z-index of your block (vertically order the elements that overlap), set up if the element overflows or not (displaying the content of the block flowing out of its container into the surrounding area), add HTML anchors and CSS classes.