question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reevaluate tab navigation interaction pattern

See original GitHub issue

We currently support two interaction patterns for our tabs component: tablist + tab + tabpanel, and nav + anchor.

We’ve received feedback that the nav + anchor pattern can be confusing, since it looks like tabs, but behaves differently. Furthermore, if these two interaction patterns are mixed, the inconsistency can be confusing for users. These issues would affected users with some degree of vision that use assistive technology to supplement their experience.

We should explore ways to reduce or eliminate the confusion here. Some options include (but are not limited to):

  1. Eliminate the nav + anchor pattern and exclusively use tablist + tab + tabpanel. (i.e. deprecate and remove MatTabNavBar)
  2. Change the visuals of the nav + anchor pattern such that it’s more visually distinct
  3. Keep both patterns, but add additional guidance and/or checks to ensure that users aren’t introducing confusing behaviors, such as assertions that nav-tabs apply focus management or warning if both are used in the same app.
  4. Change nav-tabs to use tablist + tab while still using anchor elements and routing for the content (i.e., keep MatNavTabBar, but change its interaction pattern)

It’s worth mentioning that using anchors is desirable for use cases where you want the URL to change and/or want to support opening in new browser tabs. Using routing to drive tab navigation also easily fits into Angular’s route-based lazy-loading system.

cc @zelliott

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jelbourncommented, Oct 8, 2021

What’s the difference between bullets 1 and 4? Is 1 remove/deprecate <nav mat-tab-nav-bar> and 4 change it to the tab / tablist pattern?

Yeah, that was what I meant to convey; I updated the original to clarify.

Based on some of those examples, I have a feeling it would be worth raising this to the Material Design team to explore option two above (changing the visuals of nav tabs) so that, while they kind of look like tabs in general, they’re distinctive from the thing that the specification calls tabs (i.e., introduce a new component).

0reactions
angular-automatic-lock-bot[bot]commented, Feb 7, 2022

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Navigation Tabs design pattern - UI-Patterns.com
The Navigation tabs pattern is an extension of the desktop metaphor in which physical objects are represented as GUI elements. Navigation tabs are...
Read more >
Navigation - Patterns - Material Design
Navigation guides users through different parts of your app.​​ Organize your app's structure according to the content and tasks you want users to...
Read more >
The Ultimate Guide to Mobile App Navigation Patterns
The curated list of the common and distinctive mobile app navigation patterns. It covers both iOS and Android, with an emphasis on design ......
Read more >
Module Tabs in Web Design: Best Practices and Solutions
A module tab is a design pattern where content is separated into different panes, and each pane is viewable one at a time....
Read more >
Design Patterns for Fluid Navigation – How to Use Inline Linking
Inline linking is a user interface design pattern that designers use to help ... letting the users know they can interact with the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found