File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -383,6 +383,18 @@ $mat-tab-animation-duration: 500ms !default;
383
383
display : flex ;
384
384
flex : 1 0 auto ;
385
385
386
+ @include token-utils .use-tokens (
387
+ tokens-mdc-secondary-navigation-tab .$prefix ,
388
+ tokens-mdc-secondary-navigation-tab .get-token-slots ()
389
+ ) {
390
+ // Prevents the container from collapsing if there are no tabs which can be problematic for
391
+ // tab headers that use drag&drop. We use the `:not` to avoid breaking existing apps that
392
+ // were customizing the height of by setting the `height` instead of going through the token.
393
+ & :not (:has (.mdc-tab )) {
394
+ @include token-utils .create-token-slot (min-height , container- height);
395
+ }
396
+ }
397
+
386
398
// We need to set the parent here explicitly, in order to prevent the alignment
387
399
// from any parent tab groups from propagating down to the children when nesting.
388
400
// Note that these are used as inputs so they shouldn't be changed to `mat-mdc-`.
You can’t perform that action at this time.
0 commit comments