Skip to content

Commit

Permalink
feat(material/core): add option to disable core typography
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewseguin committed Sep 26, 2022
1 parent 8e9625e commit 669cdc9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/material/core/_core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
@use './typography/all-typography';

// Mixin that renders all of the core styles that are not theme-dependent.
@mixin core($typography-config: null) {
@include all-typography.all-component-typographies($typography-config);
@mixin core($typography-config: null, $exclude-typography: false) {
@if not $exclude-typography {
@include all-typography.all-component-typographies($typography-config);
}
@include ripple.ripple();
@include cdk.a11y-visually-hidden();
@include cdk.overlay();
Expand Down
6 changes: 4 additions & 2 deletions src/material/legacy-core/_core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
// Mixin that renders all of the core styles that are not theme-dependent.
/// @deprecated Use `mat.core` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
/// @breaking-change 17.0.0
@mixin core($typography-config: null) {
@include all-typography.all-legacy-component-typographies($typography-config);
@mixin core($typography-config: null, $exclude-typography: false) {
@if not $exclude-typography {
@include all-typography.all-legacy-component-typographies($typography-config);
}
@include ripple.ripple();
@include cdk.a11y-visually-hidden();
@include cdk.overlay();
Expand Down

0 comments on commit 669cdc9

Please sign in to comment.