Skip to content

[Application-layout] Component review #821

@jsardid

Description

@jsardid

The current application-layout component

The sidenav component inside the application layout has a prop named mode to change the behavior (push or overlay).

  • The default value for this prop is overlay.
  • When push mode is selected, in mobile the behavior changes to overlay by default

The prop displayArrow controls the display of the arrow bubble used for collapse and uncollapse the panel, this prop doesn't have any effect on mobile devices since the arrow is displayed by default.

Anatomy

The current navigation hierarchy is based on a TLL (Top-left-left) navigation. Where we suggest placing the primary links on the header, the second and third hierarchies on the sidenav.

The study "A comparison of three-level menu navigation structures for web design" strongly suggest the usage of a primary left menu over primary top menus being the best performing structures (LLL, LTT, TLL).

Screen Shot 2022-03-15 at 6 48 16 PM

Fig. TLL (Left) vs LTT (right) navigation patterns

Defining the pattern navigation

Depending on the number of categories, the space needed, and the number of hierarchies the guidelines should reflect which navigation pattern is encouraged to use.

Single level menu navigation

  • Top navigation: Use it in applications with few navigation items and without a hierarchical navigation model.
  • Left navigation: Use it for complex applications with several navigation items or a hierarchical navigation model.

Vertical navigation also takes more space, so when the navigation structure is not simple but the content is also dense, either top navigation with category grouping or collapsable left navigation can be used.

Multilevel menu navigation

Behavior

Responsive transition

We have identified different possible behaviors to apply in the responsive transition:

  • Group header and sidenav content in the same place (Primer)
  • Display two different dropdowns to access the information, one for the header and another for the sidenav.

Proposal

  • Remove the display arrow

Desktop

  • Give the option of being collapsable. Default -> Not collapsable
  • Always push.
  • Review arrow.

Mobile

  • Always collapsable.
  • Always overlay.
  • Hamburguer in a subheader

Examples

Tasks

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions