Skip to content

Commit 5ce624d

Browse files
committed
refactor(material/core): remove touch target mixin
Removes the `if-touch-targets-supported` mixin since it isn't used anymore.
1 parent ee4ec66 commit 5ce624d

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

src/material/_index.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,8 @@
146146
// MDC Helpers
147147
@forward './core/mdc-helpers/mdc-helpers' as private-* show
148148
private-disable-mdc-fallback-declarations, private-typography-config-level-from-mdc,
149-
private-if-touch-targets-unsupported, $private-mdc-base-styles-query,
150-
$private-mdc-base-styles-without-animation-query, $private-mdc-theme-styles-query,
151-
$private-mdc-typography-styles-query;
149+
$private-mdc-base-styles-query, $private-mdc-base-styles-without-animation-query,
150+
$private-mdc-theme-styles-query, $private-mdc-typography-styles-query;
152151

153152
// New theming APIs:
154153
@forward './core/theming/inspection' show get-theme-version, get-theme-type, get-theme-color,

src/material/core/mdc-helpers/_mdc-helpers.scss

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
@use '@material/typography' as mdc-typography;
66
@use '@material/theme/theme-color' as mdc-theme-color;
77
@use '@material/theme/css' as mdc-theme-css;
8-
@use 'sass:meta';
98

109
// A set of standard queries to use with MDC's queryable mixins.
1110
$mdc-base-styles-query: mdc-feature-targeting.without(mdc-feature-targeting.any(color, typography));
@@ -59,10 +58,3 @@ $mdc-typography-styles-query: typography;
5958
@content;
6059
mdc-theme-css.$enable-fallback-declarations: $previous-value;
6160
}
62-
63-
// Excludes the passed-in CSS content if the layout is too dense to supports touch targets.
64-
@mixin if-touch-targets-unsupported($scale) {
65-
@if ($scale == 'minimum' or (meta.type-of($scale) == 'number' and $scale < -1)) {
66-
@content;
67-
}
68-
}

0 commit comments

Comments
 (0)