diff --git a/switch/lib/_switch-theme.scss b/switch/lib/_switch-theme.scss index 2631c89ff8..7fec77cafd 100644 --- a/switch/lib/_switch-theme.scss +++ b/switch/lib/_switch-theme.scss @@ -114,7 +114,23 @@ $_forced-colors-theme: ( @return $theme; } +@function _warn-of-not-implemented($theme) { + // TODO(b/230484095): remove this warning once these are implemented. + @if ( + map.has-key($theme, selected-handle-height) or + map.has-key($theme, selected-handle-width) or + map.has-key($theme, unselected-handle-height) or + map.has-key($theme, unselected-handle-width) or + map.has-key($theme, pressed-handle-height) or + map.has-key($theme, pressed-handle-width) + ) { + @warn '`handle-height` and `handle-width` are not yet implemented. see b/230484095'; + } + @return $theme; +} + @mixin theme($theme, $resolvers: resolvers.$material) { + $theme: _warn-of-not-implemented($theme); $theme: theme.validate-theme($light-theme, $theme); $theme: _resolve-theme($theme, $resolvers); $theme: theme.create-theme-vars($theme, switch); @@ -123,6 +139,7 @@ $_forced-colors-theme: ( } @mixin theme-styles($theme, $resolvers: resolvers.$material) { + $theme: _warn-of-not-implemented($theme); $theme: theme.validate-theme-styles($light-theme, $theme); $theme: _resolve-theme($theme, $resolvers); $theme: theme.create-theme-vars($theme, switch);