Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Application-layout] Component review #821

Closed
2 tasks done
Tracked by #36
jsardid opened this issue Mar 15, 2022 · 0 comments · Fixed by #1120 or #1122
Closed
2 tasks done
Tracked by #36

[Application-layout] Component review #821

jsardid opened this issue Mar 15, 2022 · 0 comments · Fixed by #1120 or #1122
Assignees
Labels
epic guidelines jira This task is referenced in a story of Jira library major ui kit
Milestone

Comments

@jsardid
Copy link
Member

jsardid commented Mar 15, 2022

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

@aweell aweell changed the title Application Layout review [Application-layout] Component review Mar 16, 2022
@jsardid jsardid transferred this issue from dxc-technology/halstack-style-guide Mar 30, 2022
@jsardid jsardid added this to the 22.2 milestone Mar 30, 2022
@GomezIvann GomezIvann assigned GomezIvann and unassigned Jialecl Jun 13, 2022
@GomezIvann GomezIvann linked a pull request Jun 22, 2022 that will close this issue
@eriesgo eriesgo added the jira This task is referenced in a story of Jira label Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic guidelines jira This task is referenced in a story of Jira library major ui kit
Projects
5 participants