Skip to content

Commit

Permalink
docs(material/tabs): remove duplicated tabs example (#30109)
Browse files Browse the repository at this point in the history
This commit drops the tab-group-inverted-example in favor of the identical tab-group-header-below to be consistent with the allowed inputs for `headerPosition`

(cherry picked from commit 79cb445)
  • Loading branch information
andgdk authored and crisbeto committed Dec 3, 2024
1 parent c395585 commit 341bd14
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 27 deletions.
7 changes: 3 additions & 4 deletions src/components-examples/material/tabs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ export {TabGroupAsyncExample} from './tab-group-async/tab-group-async-example';
export {TabGroupBasicExample} from './tab-group-basic/tab-group-basic-example';
export {TabGroupCustomLabelExample} from './tab-group-custom-label/tab-group-custom-label-example';
export {TabGroupDynamicHeightExample} from './tab-group-dynamic-height/tab-group-dynamic-height-example';
export {TabGroupHarnessExample} from './tab-group-harness/tab-group-harness-example';
export {TabGroupDynamicExample} from './tab-group-dynamic/tab-group-dynamic-example';
export {TabGroupHarnessExample} from './tab-group-harness/tab-group-harness-example';
export {TabGroupHeaderBelowExample} from './tab-group-header-below/tab-group-header-below-example';
export {TabGroupInkBarExample} from './tab-group-ink-bar/tab-group-ink-bar-example';
export {TabGroupLazyLoadedExample} from './tab-group-lazy-loaded/tab-group-lazy-loaded-example';
export {TabGroupPaginatedExample} from './tab-group-paginated/tab-group-paginated-example';
export {TabGroupPreserveContentExample} from './tab-group-preserve-content/tab-group-preserve-content-example';
export {TabGroupStretchedExample} from './tab-group-stretched/tab-group-stretched-example';
export {TabNavBarBasicExample} from './tab-nav-bar-basic/tab-nav-bar-basic-example';
export {TabGroupPaginatedExample} from './tab-group-paginated/tab-group-paginated-example';
export {TabGroupInvertedExample} from './tab-group-inverted/tab-group-inverted-example';
export {TabGroupInkBarExample} from './tab-group-ink-bar/tab-group-ink-bar-example';
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {Component} from '@angular/core';
import {MatTabsModule} from '@angular/material/tabs';

/**
* @title Tab group with the headers on the bottom
* @title Tab group with headers below the content
*/
@Component({
selector: 'tab-group-header-below-example',
Expand Down

This file was deleted.

This file was deleted.

4 changes: 1 addition & 3 deletions src/dev-app/tabs/tabs-demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ <h3>Tab navigation bar basic</h3>
<tab-nav-bar-basic-example></tab-nav-bar-basic-example>
<h3>Paginated Tabs</h3>
<tab-group-paginated-example></tab-group-paginated-example>
<h3>Inverted Tabs</h3>
<tab-group-inverted-example></tab-group-inverted-example>
<h3>Ink bar fit to content</h3>
<tab-group-ink-bar-example></tab-group-ink-bar-example>
<h3>Tab group with the headers on the bottom</h3>
<h3>Tab group with headers below the content</h3>
<tab-group-header-below-example></tab-group-header-below-example>
2 changes: 0 additions & 2 deletions src/dev-app/tabs/tabs-demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {
TabGroupDynamicHeightExample,
TabGroupHeaderBelowExample,
TabGroupInkBarExample,
TabGroupInvertedExample,
TabGroupLazyLoadedExample,
TabGroupPaginatedExample,
TabGroupStretchedExample,
Expand All @@ -30,7 +29,6 @@ import {MatTabsModule} from '@angular/material/tabs';
templateUrl: 'tabs-demo.html',
imports: [
TabGroupInkBarExample,
TabGroupInvertedExample,
TabGroupPaginatedExample,
TabNavBarBasicExample,
TabGroupStretchedExample,
Expand Down

0 comments on commit 341bd14

Please sign in to comment.