Style

Themes

The secondary navigation is used on a variety of pages so it requires a variety of themes. The goal for the secondary navigation is to blend in with its surroundings in order to avoid clashing or competing with other important components.

Choosing a theme

When thinking about choosing a theme, consider the goal of the page as well as what the design is or will be. Ideally, the chosen theme matches the rest of the page design while providing a seamless browsing experience.

Theme options

The light theme features a light gray background and a drop shadow, it is best used on pages with a lighter look and feel. The drop shadow is always visible unless covered by an expandable tray.

Secondary navigation - light theme option

The dark theme features a dark gray background and a thin gray line, it is best used on pages with a darker look and feel. The thin gray line is always visible unless covered by an expandable tray.

Secondary navigation - dark theme option

Product name text styling

If the secondary navigation is used to connect product-like pages, Zone 1 should display the product name in the form of linked text instead of the logo.

Warning

Various styling treatments were explored for the product name text, do not deviate from any of these styles.

Secondary navigation - product name text styling

Breakpoint Style
Large breakpoints Red Hat Display, Medium / 18px, 27 (1.5 line height)
Small breakpoints Red Hat Display, Medium / 16px, 24 (1.5 line height)

Navigation text styles have the same styling across all themes like font family, size, and line height. However, the color will change between black and white depending on the chosen theme.

Secondary navigation - navigation text styles

Expandable tray

If content in Zone 2 includes a menu and when that menu text is selected, an expandable tray will appear. It is divided into three parts and is styled the same across all themes.

  1. Tab - Visually indicates what menu is expanded
  2. Tray - The area where content or other components can be placed
  3. Overlay - A transparent background that helps elevate the component above the page underneath

Helpful tip

When a menu is expanded, the arrow icon next to the menu text will flip to point up.

Secondary navigation - expandable tray (desktop)

Secondary navigation - expandable tray (mobile)

Layout

The secondary navigation spans the entire width of the browser window on all breakpoints

Secondary navigation - layout (desktop)

Secondary navigation - layout (mobile)

Left-to-right languages

When content is translated to other left-to-right languages, the layout and text size remains the same.

Secondary navigation - left-to-right languages

Right-to-left languages

When content is translated to a right-to-left language like Hebrew, the text size will increase which makes it easier to understand visual subtleties of unique characters

Secondary navigation - right-to-left languages

Responsive Design

Large breakpoints

The secondary navigation includes Zones 1, 2, and 3 on large breakpoints. The content in the expandable tray is also visible.

Secondary navigation - large breakpoints

Small breakpoints

Secondary navigation - small breakpoints

Spacing

The secondary navigation uses spacers to define space values between elements.

Extra large breakpoints

Secondary navigation - spacing (extra large breakpoints)

Large breakpoints

Secondary navigation - spacing (large breakpoints)

Small breakpoints

Secondary navigation - spacing (small breakpoints)

© 2021-2023 Red Hat, Inc. Deploys by Netlify