Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit d381ff9

Browse files
Googlernshahan
authored andcommitted
Make the material tab text-wrap mixin more generic, to work with both material-tab and material-tab-strip
PiperOrigin-RevId: 189248419
1 parent 425271e commit d381ff9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/material_tab/_mixins.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,13 @@ $_focusTabBtnSel: $_tabBtnSel + '.focus';
120120
}
121121
}
122122

123-
// Allow the text inside the tab to break into lines.
123+
// Allow the text inside the tab to break into lines. This needs to carefully
124+
// scoped to tab-strip or tab-button. Example:
125+
// material-tab-strip {
126+
// @include allow-text-wrap;
127+
// }
124128
@mixin allow-text-wrap {
125-
::ng-deep > .content {
129+
::ng-deep .content {
126130
text-overflow: initial;
127131
white-space: initial;
128132
}

0 commit comments

Comments
 (0)