Style

Call to action component blueprint

Variants

There are several call to action variants available for use depending on what you want a user to select.

Primary

Use for the primary or most important link. This variant is the highest in hierarchy and can also be used to play a video in a Modal dialog or large container.

Call to action component, Primary variant

Primary (video)

Used only to play an important video in a Modal dialog or large container. Do not use without a background underneath or use the Primary or Default, video variants instead.

Call to action component, Primary (video) variant

Primary (white)

Use if the red variant conflicts with other elements or violates accessibility standards. Use on dark backgrounds, otherwise use the Secondary variant instead.

Call to action component, Primary (white) variant

Secondary

Use for secondary or general links. This variant is lower in hierarchy than the Primary variant and can be used multiple times in the same container or layout.

Call to action component, Secondary variant

Brick

Use to group links together. Only the Brick variant can stretch to fit a container or grid, otherwise the text label padding in other variants stays the same.

Call to action component, Brick variant

Brick (icon)

Use to group links with icons together. Only the Brick variant can stretch to fit a container or grid, otherwise the text label padding in other variants stays the same.

Call to action component, Brick (icon) variant

Default

Use for tertiary or the least important links. This variant is the lowest in hierarchy and can be used multiple times in the same container or layout.

Call to action component, Default variant

Default (video)

Use to play less important videos in a Modal dialog only. This variant is the lowest in hierarchy and can be used multiple times in the same container or layout.

Call to action component, Default (video) variant

Theme

Light theme

Call to action component, light theme

Dark theme

Call to action component, dark theme

Responsive design

Ordering

When call to action links are grouped together, they are ordered by hierarchy from left to right. On small screens, the order changes to left to right and top to bottom if there are call to action links that fall into a second row.

Call to action component responsive design, ordering

Long text labels

Long text labels will wrap to two lines on small screens or when translated to certain languages. This can be avoided by writing less text or revising existing text to be shorter.

Warning

The Default call to action link arrow should not appear by itself, it should always be connected to at least one word on the same line.

Call to action component responsive design, long text labels

Brick

The Brick variants will move around the grid to accommodate different container sizes.

Warning

Long text labels might break to two lines which adds height and disrupts the grid, therefore write no more than two or three words per link.

Call to action component responsive design, ordering

Spacing

Call to action links use PatternFly 4 spacers to define spacing values between elements.

Helpful tip

The same variants across both themes share the same spacing values, for example Primary, Secondary, and Default variants.

Call to action component spacing
© 2021-2023 Red Hat, Inc. Deploys by Netlify