Skip to content

fix(material/core): reduce the number of module resolutions required for the legacy theming bundle #22687

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 39 additions & 4 deletions src/material/_theming.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,42 @@
// Note that we have to forward the `.import` files for backwards-compatibility with
// projects that don't use Sass modules and include the `mat-`-prefixed mixins.

@forward './core/color/all-color.import';
@forward './core/density/private/all-density.import';
@forward './core/theming/all-theme.import';
@forward './core/typography/all-typography.import';
@forward '../cdk/a11y/index.import';
@forward '../cdk/overlay/index.import';
@forward '../cdk/text-field/index.import';

@forward './core/core-legacy-index';
@forward './autocomplete/autocomplete-legacy-index';
@forward './badge/badge-legacy-index';
@forward './bottom-sheet/bottom-sheet-legacy-index';
@forward './button-toggle/button-toggle-legacy-index';
@forward './button/button-legacy-index';
@forward './card/card-legacy-index';
@forward './checkbox/checkbox-legacy-index';
@forward './chips/chips-legacy-index';
@forward './datepicker/datepicker-legacy-index';
@forward './dialog/dialog-legacy-index';
@forward './divider/divider-legacy-index';
@forward './expansion/expansion-legacy-index';
@forward './form-field/form-field-legacy-index';
@forward './grid-list/grid-list-legacy-index';
@forward './icon/icon-legacy-index';
@forward './input/input-legacy-index';
@forward './list/list-legacy-index';
@forward './menu/menu-legacy-index';
@forward './paginator/paginator-legacy-index';
@forward './progress-bar/progress-bar-legacy-index';
@forward './progress-spinner/progress-spinner-legacy-index';
@forward './radio/radio-legacy-index';
@forward './select/select-legacy-index';
@forward './sidenav/sidenav-legacy-index';
@forward './slide-toggle/slide-toggle-legacy-index';
@forward './slider/slider-legacy-index';
@forward './snack-bar/snack-bar-legacy-index';
@forward './sort/sort-legacy-index';
@forward './stepper/stepper-legacy-index';
@forward './table/table-legacy-index';
@forward './tabs/tabs-legacy-index';
@forward './toolbar/toolbar-legacy-index';
@forward './tooltip/tooltip-legacy-index';
@forward './tree/tree-legacy-index';
2 changes: 2 additions & 0 deletions src/material/autocomplete/_autocomplete-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@forward 'autocomplete-theme' hide color, theme, typography;
@forward 'autocomplete-theme' as mat-autocomplete-* hide mat-autocomplete-density;
3 changes: 3 additions & 0 deletions src/material/badge/_badge-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@forward 'badge-theme' hide $default-size, $font-size, $font-weight, $large-size, $small-size,
color, theme, typography;
@forward 'badge-theme' as mat-badge-* hide mat-badge-density, mat-badge-size;
2 changes: 2 additions & 0 deletions src/material/bottom-sheet/_bottom-sheet-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@forward 'bottom-sheet-theme' hide color, theme, typography;
@forward 'bottom-sheet-theme' as mat-bottom-sheet-* hide mat-bottom-sheet-density;
2 changes: 2 additions & 0 deletions src/material/button-toggle/_button-toggle-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@forward 'button-toggle-variables' as mat-button-toggle-*;
@forward 'button-toggle-theme' as mat-button-toggle-*;
19 changes: 19 additions & 0 deletions src/material/button/_button-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
@forward 'button-theme' hide color, theme, typography;
@forward 'button-theme' as mat-button-* hide $mat-button-ripple-opacity, mat-button-density,
mat-button-focus-overlay-color, mat-button-ripple-background, mat-button-ripple-color,
mat-button-theme-property;

@forward 'button-base' as mat-* hide $mat-border-radius, $mat-button-border-radius,
$mat-button-line-height, $mat-button-size, $mat-focus-transition, $mat-line-height, $mat-margin,
$mat-min-width, $mat-padding, mat-base;
@forward 'button-base' as mat-button-* hide $mat-button-button-border-radius,
$mat-button-button-line-height, $mat-button-button-size, $mat-button-fab-border-radius,
$mat-button-fab-padding, $mat-button-fab-size, $mat-button-mini-fab-padding,
$mat-button-mini-fab-size, $mat-button-stroked-button-border-width,
$mat-button-stroked-button-line-height, $mat-button-stroked-button-padding, mat-button-fab,
mat-button-raised-button;
@forward 'button-base' as mat-icon-* hide $mat-icon-border-radius, $mat-icon-fab-border-radius,
$mat-icon-fab-padding, $mat-icon-fab-size, $mat-icon-focus-transition, $mat-icon-line-height,
$mat-icon-margin, $mat-icon-min-width, $mat-icon-mini-fab-padding, $mat-icon-mini-fab-size,
$mat-icon-padding, $mat-icon-stroked-button-border-width, $mat-icon-stroked-button-line-height,
$mat-icon-stroked-button-padding, mat-icon-base, mat-icon-fab, mat-icon-raised-button;
2 changes: 2 additions & 0 deletions src/material/card/_card-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@forward 'card-theme' hide color, theme, typography;
@forward 'card-theme' as mat-card-* hide mat-card-density;
2 changes: 2 additions & 0 deletions src/material/checkbox/_checkbox-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@forward 'checkbox-theme' hide color, theme, typography;
@forward 'checkbox-theme' as mat-checkbox-* hide mat-checkbox-density;
6 changes: 6 additions & 0 deletions src/material/chips/_chips-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@forward 'chips-theme' hide $chip-remove-font-size, color, theme, typography;
@forward 'chips-theme' as mat-* hide mat-chip-element-color, mat-chip-theme-color, mat-color,
mat-density, mat-ripple-background, mat-theme, mat-typography;
@forward 'chips-theme' as mat-chips-* hide $mat-chips-chip-remove-font-size,
mat-chips-chip-element-color, mat-chips-chip-theme-color, mat-chips-density,
mat-chips-ripple-background;
17 changes: 17 additions & 0 deletions src/material/core/_core-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@forward 'core' hide core;
@forward 'core-theme' hide color, theme;
@forward 'core' as mat-* hide mat-mdc-core, mat-mdc-strong-focus-indicators-positioning;
@forward 'core-theme' as mat-* hide mat-color, mat-theme;
@forward 'core' as mat-core-* hide mat-core-mdc-core,
mat-core-mdc-strong-focus-indicators-positioning;
@forward 'core-theme' as mat-core-*;

@forward './color/color-legacy-index';
@forward './density/private/density-legacy-index';
@forward './focus-indicators/focus-indicators-legacy-index';
@forward './option/option-legacy-index';
@forward './ripple/ripple-legacy-index';
@forward './selection/pseudo-checkbox/pseudo-checkbox-legacy-index';
@forward './style/style-legacy-index';
@forward './theming/theming-legacy-index';
@forward './typography/typography-legacy-index';
1 change: 1 addition & 0 deletions src/material/core/color/_color-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@forward 'all-color';
5 changes: 5 additions & 0 deletions src/material/core/density/private/_density-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@forward 'all-density' hide all-component-densities;
@forward 'compatibility' hide $private-density-generate-at-root, $private-density-generate-styles,
private-density-legacy-compatibility, private-density-prop-value;
@forward 'compatibility' as mat-* hide $mat-default-scale, $mat-interval, $mat-maximum-scale,
$mat-minimum-scale, $mat-supported-scales;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@forward 'focus-indicators' hide private-strong-focus-indicators-positioning,
strong-focus-indicators;
@forward 'focus-indicators-theme' hide color, theme;
@forward 'focus-indicators' as mat-*;
@forward 'focus-indicators-theme' as mat-strong-focus-indicators-*;
5 changes: 5 additions & 0 deletions src/material/core/option/_option-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@forward 'option-theme' hide color, theme, typography;
@forward 'option-theme' as mat-option-* hide mat-option-density;

@forward 'optgroup-theme' hide color, theme, typography;
@forward 'optgroup-theme' as mat-optgroup-* hide mat-optgroup-density;
3 changes: 3 additions & 0 deletions src/material/core/ripple/_ripple-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@forward 'ripple' as mat-* hide $mat-color-opacity;
@forward 'ripple' as mat-ripple-* hide mat-ripple-ripple;
@forward 'ripple-theme' as mat-ripple-*;
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@forward 'pseudo-checkbox-theme' hide color, theme, typography;
@forward 'pseudo-checkbox-theme' as mat-pseudo-checkbox-* hide mat-pseudo-checkbox-density;
24 changes: 24 additions & 0 deletions src/material/core/style/_style-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
@forward 'button-common' as mat-button-*;
@forward 'checkbox-common' as mat-checkbox-*;
@forward 'elevation' hide $color, $opacity, $prefix, $transition-duration,
$transition-timing-function, elevation, overridable-elevation, elevation-transition,
private-transition-property-value;
@forward 'elevation' as mat-* hide $mat-color, $mat-opacity, $mat-prefix, $mat-transition-duration,
$mat-transition-timing-function, mat-get-ambient-map, mat-get-penumbra-map, mat-get-umbra-map;
@forward 'elevation' as mat-elevation-* hide mat-elevation-elevation, mat-elevation-get-ambient-map,
mat-elevation-get-penumbra-map, mat-elevation-get-umbra-map, mat-elevation-overridable-elevation;
@forward 'form-common' as mat-*;
@forward 'layout-common' as mat-*;
@forward 'list-common' as mat-* hide mat-base, mat-wrapper-base;
@forward 'list-common' as mat-line-* hide mat-line-normalize-text, mat-line-truncate-line;
@forward 'menu-common' as mat-menu-*;
@forward 'private' as mat-*;
@forward 'variables' hide $fast-out-linear-in-timing-function, $fast-out-slow-in-timing-function,
$linear-out-slow-in-timing-function, $small, $toggle-padding, $toggle-size, $xsmall;
@forward 'variables' as mat-* hide $mat-ease-in-out-curve-function, $mat-pi, $mat-swift-ease-in,
$mat-swift-ease-in-duration, $mat-swift-ease-in-out, $mat-swift-ease-in-out-duration,
$mat-swift-ease-in-out-timing-function, $mat-swift-ease-in-timing-function, $mat-swift-ease-out,
$mat-swift-ease-out-duration, $mat-swift-ease-out-timing-function, $mat-swift-linear,
$mat-swift-linear-duration, $mat-swift-linear-timing-function, $mat-z-index-drawer,
$mat-z-index-fab;
@forward 'vendor-prefixes';
22 changes: 22 additions & 0 deletions src/material/core/theming/_theming-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
@forward 'palette' hide $amber-palette, $blue-palette, $blue-gray-palette, $blue-grey-palette,
$brown-palette, $cyan-palette, $dark-theme-background-palette, $dark-theme-foreground-palette,
$deep-orange-palette, $deep-purple-palette, $gray-palette, $green-palette, $grey-palette,
$indigo-palette, $light-blue-palette, $light-green-palette, $light-theme-background-palette,
$light-theme-foreground-palette, $lime-palette, $orange-palette, $pink-palette, $purple-palette,
$red-palette, $teal-palette, $yellow-palette;
@forward 'palette' as mat-* hide $mat-black-12-opacity, $mat-black-6-opacity, $mat-black-87-opacity,
$mat-dark-disabled-text, $mat-dark-dividers, $mat-dark-focused, $mat-dark-primary-text,
$mat-dark-secondary-text, $mat-light-disabled-text, $mat-light-dividers, $mat-light-focused,
$mat-light-primary-text, $mat-light-secondary-text, $mat-white-12-opacity, $mat-white-6-opacity,
$mat-white-87-opacity;
@forward 'palette-deprecated' as mat-*;
@forward 'theming' hide $theme-ignore-duplication-warnings, get-color-from-palette,
get-color-config, get-density-config, get-typography-config, define-palette, define-light-theme,
define-dark-theme, private-check-duplicate-theme-styles,
private-create-backwards-compatibility-theme, private-is-legacy-constructed-theme,
private-is-theme-object, private-legacy-get-theme;
@forward 'theming' as mat-* hide $mat-theme-duplicate-warning, $mat-theme-emitted-color,
$mat-theme-emitted-density, $mat-theme-emitted-typography, $mat-theme-generate-default-density,
mat-create-dark-color-config, mat-create-light-color-config, mat-validate-theme;
@forward 'theming-deprecated' as mat-*;
@forward 'all-theme';
18 changes: 18 additions & 0 deletions src/material/core/typography/_typography-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@forward 'all-typography';
@forward 'typography-utils' hide font-family, font-shorthand, font-size, font-weight, line-height,
letter-spacing, typography-level;
@forward 'typography-utils' as mat-* hide mat-font-shorthand, mat-get-type-value,
mat-typography-level;
@forward 'typography-utils' as mat-typography-* hide mat-typography-font-family,
mat-typography-font-size, mat-typography-font-weight, mat-typography-get-type-value,
mat-typography-line-height, mat-typography-letter-spacing;
@forward 'typography-utils' as mat-line-* hide mat-line-font-family, mat-line-font-shorthand,
mat-line-font-size, mat-line-font-weight, mat-line-letter-spacing, mat-line-typography-level;
@forward 'typography' as mat-* hide mat-define-typography-config, mat-define-typography-level;
@forward 'typography' as mat-typography-* hide mat-typography-typography-hierarchy,
mat-typography-private-typography-is-2014-config, mat-typography-private-typography-is-2018-config,
mat-typography-private-typography-to-2014-config, mat-typography-private-typography-to-2018-config;
@forward 'typography-utils-deprecated' as mat-typography-*;
@forward 'typography-deprecated' as mat-typography-*;
@forward 'typography-deprecated' as mat-typography-* hide mat-typography-base-typography;
@forward 'typography-deprecated' as mat-* show mat-base-typography;
9 changes: 9 additions & 0 deletions src/material/datepicker/_datepicker-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@forward 'datepicker-theme' hide $calendar-body-font-size, $calendar-weekday-table-font-size,
$range-fade-amount, $selected-fade-amount, $selected-today-box-shadow-width, $today-fade-amount,
color, date-range-colors, theme, typography;
@forward 'datepicker-theme' as mat-* hide $mat-range-fade-amount, $mat-selected-fade-amount,
$mat-selected-today-box-shadow-width, $mat-today-fade-amount, mat-color, mat-density, mat-theme,
mat-typography, mat-unselected-cell;
@forward 'datepicker-theme' as mat-datepicker-* hide $mat-datepicker-calendar-body-font-size,
$mat-datepicker-calendar-weekday-table-font-size, mat-datepicker-color,
mat-datepicker-date-range-colors, mat-datepicker-density, mat-datepicker-unselected-cell;
2 changes: 2 additions & 0 deletions src/material/dialog/_dialog-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@forward 'dialog-theme' hide color, theme, typography;
@forward 'dialog-theme' as mat-dialog-* hide mat-dialog-density;
3 changes: 3 additions & 0 deletions src/material/divider/_divider-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@forward 'divider-theme' hide color, theme, typography;
@forward 'divider-theme' as mat-divider-* hide mat-divider-density;
@forward 'divider-offset' as mat-*;
3 changes: 3 additions & 0 deletions src/material/expansion/_expansion-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@forward 'expansion-variables' as mat-expansion-panel-*;
@forward 'expansion-mixins' as mat-*;
@forward 'expansion-theme' as mat-expansion-panel-*;
24 changes: 24 additions & 0 deletions src/material/form-field/_form-field-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
@forward 'form-field-fill-theme' hide $fill-dedupe, fill-color, fill-theme, fill-typography,
private-form-field-fill-density;
@forward 'form-field-fill-theme' as mat-* hide $mat-fill-dedupe, mat-fill-color,
mat-fill-label-floating, mat-fill-theme, mat-fill-typography;
@forward 'form-field-fill-theme' as mat-form-field-* hide mat-form-field-fill-label-floating,
mat-form-field-private-form-field-fill-density;
@forward 'form-field-legacy-theme' hide $legacy-dedupe, legacy-color, legacy-theme,
legacy-typography, private-form-field-legacy-density;
@forward 'form-field-legacy-theme' as mat-* hide $mat-legacy-dedupe, mat-legacy-color,
mat-legacy-label-floating, mat-legacy-label-floating-print, mat-legacy-theme, mat-legacy-typography;
@forward 'form-field-legacy-theme' as mat-form-field-* hide mat-form-field-legacy-label-floating,
mat-form-field-legacy-label-floating-print, mat-form-field-private-form-field-legacy-density;
@forward 'form-field-outline-theme' hide $outline-dedupe, outline-color, outline-theme,
outline-typography, private-form-field-outline-density;
@forward 'form-field-outline-theme' as mat-* hide $mat-outline-dedupe, mat-outline-color,
mat-outline-label-floating, mat-outline-theme, mat-outline-typography;
@forward 'form-field-outline-theme' as mat-form-field-* hide mat-form-field-outline-label-floating,
mat-form-field-private-form-field-outline-density;
@forward 'form-field-standard-theme' as mat-* hide mat-standard-color, mat-standard-theme,
mat-standard-typography;
@forward 'form-field-standard-theme' as mat-form-field-* hide
mat-form-field-private-form-field-standard-density;
@forward 'form-field-theme' hide $dedupe, color, density, theme, typography;
@forward 'form-field-theme' as mat-form-field-* hide mat-form-field-label-floating;
2 changes: 2 additions & 0 deletions src/material/grid-list/_grid-list-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@forward 'grid-list-theme' hide color, theme, typography;
@forward 'grid-list-theme' as mat-grid-list-* hide mat-grid-list-density;
2 changes: 2 additions & 0 deletions src/material/icon/_icon-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@forward 'icon-theme' hide color, theme, typography;
@forward 'icon-theme' as mat-icon-* hide mat-icon-density;
2 changes: 2 additions & 0 deletions src/material/input/_input-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@forward 'input-theme' hide color, theme, typography;
@forward 'input-theme' as mat-input-* hide mat-input-density;
2 changes: 2 additions & 0 deletions src/material/list/_list-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@forward 'list-theme' hide color, theme, typography;
@forward 'list-theme' as mat-list-* hide mat-list-density;
2 changes: 2 additions & 0 deletions src/material/menu/_menu-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@forward 'menu-theme' hide color, theme, typography;
@forward 'menu-theme' as mat-menu-* hide mat-menu-density;
2 changes: 2 additions & 0 deletions src/material/paginator/_paginator-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@forward 'paginator-variables' as mat-paginator-*;
@forward 'paginator-theme' as mat-paginator-*;
2 changes: 2 additions & 0 deletions src/material/progress-bar/_progress-bar-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@forward 'progress-bar-theme' hide color, theme, typography;
@forward 'progress-bar-theme' as mat-progress-bar-* hide mat-progress-bar-density;
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@forward 'progress-spinner-theme' hide color, theme, typography;
@forward 'progress-spinner-theme' as mat-progress-spinner-* hide mat-progress-spinner-density;
2 changes: 2 additions & 0 deletions src/material/radio/_radio-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@forward 'radio-theme' hide color, theme, typography;
@forward 'radio-theme' as mat-radio-* hide mat-radio-color, mat-radio-density;
2 changes: 2 additions & 0 deletions src/material/select/_select-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@forward 'select-theme' hide color, theme, typography;
@forward 'select-theme' as mat-select-* hide mat-select-density;
2 changes: 2 additions & 0 deletions src/material/sidenav/_sidenav-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@forward 'sidenav-theme' hide color, theme, typography;
@forward 'sidenav-theme' as mat-sidenav-* hide mat-sidenav-density;
3 changes: 3 additions & 0 deletions src/material/slide-toggle/_slide-toggle-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@forward 'slide-toggle-theme' hide color, theme, typography;
@forward 'slide-toggle-theme' as mat-slide-toggle-* hide mat-slide-toggle-checked,
mat-slide-toggle-density;
2 changes: 2 additions & 0 deletions src/material/slider/_slider-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@forward 'slider-theme' hide color, theme, typography;
@forward 'slider-theme' as mat-slider-* hide mat-slider-density, mat-slider-inner-content-theme;
2 changes: 2 additions & 0 deletions src/material/snack-bar/_snack-bar-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@forward 'snack-bar-theme' hide color, theme, typography;
@forward 'snack-bar-theme' as mat-snack-bar-* hide mat-snack-bar-density;
2 changes: 2 additions & 0 deletions src/material/sort/_sort-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@forward 'sort-theme' hide color, theme, typography;
@forward 'sort-theme' as mat-sort-* hide mat-sort-density;
7 changes: 7 additions & 0 deletions src/material/stepper/_stepper-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@forward 'stepper-variables' as mat-* hide $mat-density-config, $mat-header-height,
$mat-header-maximum-height, $mat-header-minimum-height, $mat-label-header-height,
$mat-label-min-width, $mat-label-position-bottom-top-gap, $mat-line-gap, $mat-line-width,
$mat-side-gap;
@forward 'stepper-variables' as mat-stepper-* hide $mat-stepper-step-header-icon-size,
$mat-stepper-step-sub-label-font-size, $mat-stepper-vertical-stepper-content-margin;
@forward 'stepper-theme' as mat-stepper-*;
3 changes: 3 additions & 0 deletions src/material/table/_table-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@forward 'table-theme' hide color, theme, typography;
@forward 'table-theme' as mat-table-* hide mat-table-density;
@forward 'table-flex-styles' as mat-*;
6 changes: 6 additions & 0 deletions src/material/tabs/_tabs-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@forward 'tabs-theme' hide color, theme, typography;
@forward 'tabs-theme' as mat-tabs-* hide mat-tabs-background, mat-tabs-density, mat-tabs-ink-bar,
mat-tabs-tab-label-focus;
@forward 'tabs-common' hide $tab-animation-duration, $tab-bar-height;
@forward 'tabs-common' as mat-* hide mat-ink-bar, mat-paginated-tab-header,
mat-paginated-tab-header-container, mat-paginated-tab-header-item-wrapper, mat-tab-label;
4 changes: 4 additions & 0 deletions src/material/toolbar/_toolbar-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@forward 'toolbar-variables' as mat-toolbar-*;
@forward 'toolbar-theme' hide color, density, theme, typography;
@forward 'toolbar-theme' as mat-toolbar-* hide mat-toolbar-color, mat-toolbar-form-field-overrides,
mat-toolbar-height;
3 changes: 3 additions & 0 deletions src/material/tooltip/_tooltip-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@forward 'tooltip-theme' hide $font-size, $handset-font-size, $handset-target-height,
$handset-vertical-padding, $target-height, $vertical-padding, color, theme, typography;
@forward 'tooltip-theme' as mat-tooltip-* hide mat-tooltip-density;
2 changes: 2 additions & 0 deletions src/material/tree/_tree-legacy-index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@forward 'tree-variables' as mat-tree-*;
@forward 'tree-theme' as mat-tree-*;