@@ -46,9 +46,10 @@ provides a tab-like UI for navigating between routes.
4646               "file": "tab-nav-bar-basic-example.html", 
4747               "region": "mat-tab-nav"}) -->  
4848
49- The ` tab-nav-bar `  is not tied to any particular router; it works with normal ` <a> `  elements and uses
50- the ` active `  property to determine which tab is currently active. The corresponding
51- ` <router-outlet> `  can be placed anywhere in the view.
49+ The ` mat-tab-nav-bar `  is not tied to any particular router; it works with normal ` <a> `  elements and
50+ uses the ` active `  property to determine which tab is currently active. The corresponding
51+ ` <router-outlet> `  must be wrapped in an ` <mat-tab-nav-panel> `  component and should typically be
52+ placed relatively close to the ` mat-tab-nav-bar `  (see [ Accessibility] ( #accessibility ) ).
5253
5354### Lazy Loading  
5455By default, the tab contents are eagerly loaded. Eagerly loaded tabs
@@ -94,23 +95,14 @@ off-screen tabs in the DOM, you can set the `preserveContent` input to `true`.
9495<!--  example(tab-group-preserve-content) --> 
9596
9697### Accessibility  
97- ` MatTabGroup `  and ` MatTabNavBar `  implement different interaction patterns for different use-cases.
98- You should choose the component that works best for your application.
99- 
100- ` MatTabGroup `  combines ` tablist ` , ` tab ` , and ` tabpanel `  into a single component with
101- handling for keyboard inputs and focus management. You should use this component for switching
102- between content within a single page. 
103- 
104- ` MatTabNavBar ` , implements a navigation interaction pattern by using a ` <nav> `  element with anchor
105- elements as the "tabs". You should use this component when you want your cross-page navigation to
106- look like a tabbed interface. As a rule of thumb, you should consider ` MatTabNavBar `  if changing
107- tabs would change the browser URL. For all navigation, including with ` MatTabNavBar ` , always move
108- browser focus to an element at the beginning of the content to which the user is navigating.
109- Furthermore, consider placing your ` <router-outlet> `  inside of a
110- [ landmark region] ( https://www.w3.org/TR/wai-aria-1.1/#dfn-landmark )  appropriate to the page.
111- 
112- Avoid mixing both ` MatTabGroup `  and ` MatTabNavBar `  in your application. The inconsistent interaction
113- patterns applied between the components may confuse users.
98+ ` MatTabGroup `  and ` MatTabNavBar `  both implement the
99+ [ ARIA Tabs design pattern] ( https://www.w3.org/TR/wai-aria-practices-1.1/#tabpanel ) . Both components
100+ compose ` tablist ` , ` tab ` , and ` tabpanel `  elements with handling for keyboard inputs and focus
101+ management.
102+ 
103+ When using ` MatTabNavBar ` , you should place the ` <mat-tab-nav-panel> `  component relatively close to
104+ if not immediately adjacent to the ` <nav mat-tab-nav-bar> `  component so that it's easy for screen
105+ reader users to identify the association.
114106
115107#### Labels  
116108
0 commit comments