This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tabs): md-center-tabs causes tabs to not render (#11567)
only apply the width = 999999px work around when pagination is enabled only one of center tabs or pagination can be activate at a time Fixes #11566. Relates to #11432.
- Loading branch information
Showing
10 changed files
with
106 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<div ng-cloak> | ||
<md-content> | ||
<md-tabs class="md-primary" md-center-tabs> | ||
<md-tab label="one"> | ||
<md-content class="md-padding"> | ||
<h2 class="md-display-1">Tab One</h2> | ||
<p class="md-body-1"> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla venenatis ante augue. | ||
Phasellus volutpat neque ac dui mattis vulputate. Etiam consequat aliquam cursus. In | ||
sodales pretium ultrices. Maecenas lectus est, sollicitudin consectetur felis nec, | ||
feugiat ultricies mi. | ||
</p> | ||
</md-content> | ||
</md-tab> | ||
<md-tab label="two"> | ||
<md-content class="md-padding"> | ||
<h2 class="md-display-1">Tab Two</h2> | ||
<p class="md-body-1"> | ||
Morbi viverra, ante vel aliquet tincidunt, leo dolor pharetra quam, at semper massa | ||
orci nec magna. Donec posuere nec sapien sed laoreet. Etiam cursus nunc in | ||
condimentum facilisis. Etiam in tempor tortor. Vivamus faucibus egestas enim, | ||
at convallis diam pulvinar vel. Cras ac orci eget nisi maximus cursus. | ||
</p> | ||
</md-content> | ||
</md-tab> | ||
<md-tab label="three"> | ||
<md-content class="md-padding"> | ||
<h2 class="md-display-1">Tab Three</h2> | ||
<p class="md-body-1"> | ||
Integer turpis erat, porttitor vitae mi faucibus, laoreet interdum tellus. Curabitur | ||
posuere molestie dictum. Morbi eget congue risus, quis rhoncus quam. Suspendisse | ||
vitae hendrerit erat, at posuere mi. Cras eu fermentum nunc. Sed id ante eu orci | ||
commodo volutpat non ac est. | ||
</p> | ||
</md-content> | ||
</md-tab> | ||
</md-tabs> | ||
</md-content> | ||
</div> |
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,4 @@ | ||
(function () { | ||
'use strict'; | ||
angular.module('tabsDemoCenterTabs', ['ngMaterial']); | ||
})(); |
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,12 @@ | ||
/* | ||
* Style tab width to align with the MD spec: | ||
* https://material.io/archive/guidelines/components/tabs.html#tabs-specs | ||
*/ | ||
md-tab-item { | ||
min-width: 72px; | ||
} | ||
@media (min-width: 960px) { | ||
md-tab-item { | ||
min-width: 160px; | ||
} | ||
} |
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