-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(material-experimental/mdc-tabs): add default fitInkBarToContent …
…option (#17556) * feat(material-experimental/mdc-tabs): add default fitInkBarToContent option * fix indentation * add truthy check in tests * update goldens
- Loading branch information
1 parent
031e15f
commit 2f84389
Showing
8 changed files
with
119 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* @license | ||
* Copyright Google LLC All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
import {InjectionToken} from '@angular/core'; | ||
|
||
/** Object that can be used to configure the default options for the tabs module. */ | ||
export interface MatTabsConfig { | ||
/** Duration for the tab animation. Must be a valid CSS value (e.g. 600ms). */ | ||
animationDuration?: string; | ||
|
||
/** | ||
* Whether pagination should be disabled. This can be used to avoid unnecessary | ||
* layout recalculations if it's known that pagination won't be required. | ||
*/ | ||
disablePagination?: boolean; | ||
|
||
/** | ||
* Whether the ink bar should fit its width to the size of the tab label content. | ||
* This only applies to the MDC-based tabs. | ||
*/ | ||
fitInkBarToContent?: boolean; | ||
} | ||
|
||
/** Injection token that can be used to provide the default options the tabs module. */ | ||
export const MAT_TABS_CONFIG = new InjectionToken<MatTabsConfig>('MAT_TABS_CONFIG'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters