From 56d45d60bd1cf798aa9fb7aac3f7367fa01aaf0d Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Mon, 23 Jul 2018 11:38:22 +0200 Subject: [PATCH] [Slider]: Remove zero css class completely --- packages/material-ui-lab/src/Slider/Slider.d.ts | 1 - packages/material-ui-lab/src/Slider/Slider.js | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/material-ui-lab/src/Slider/Slider.d.ts b/packages/material-ui-lab/src/Slider/Slider.d.ts index 862994bffe0da4..879a0b4816c73b 100644 --- a/packages/material-ui-lab/src/Slider/Slider.d.ts +++ b/packages/material-ui-lab/src/Slider/Slider.d.ts @@ -28,7 +28,6 @@ export type SliderClassKey = | 'focused' | 'activated' | 'disabled' - | 'zero' | 'vertical' | 'reverse' | 'jumped'; diff --git a/packages/material-ui-lab/src/Slider/Slider.js b/packages/material-ui-lab/src/Slider/Slider.js index 7796b5ede35615..a02a77f86fada6 100644 --- a/packages/material-ui-lab/src/Slider/Slider.js +++ b/packages/material-ui-lab/src/Slider/Slider.js @@ -140,8 +140,6 @@ export const styles = theme => { activated: {}, /* Class applied to the root, track and container to trigger JSS nested styles if `vertical`. */ vertical: {}, - /* Class applied to the thumb to trigger nested styles if `value` = `min` . */ - zero: {}, }; }; @@ -437,9 +435,7 @@ class Slider extends React.Component { [classes.vertical]: vertical, }); - const thumbClasses = classNames(classes.thumb, commonClasses, { - [classes.zero]: percent === 0, - }); + const thumbClasses = classNames(classes.thumb, commonClasses); const trackProperty = vertical ? 'height' : 'width'; const thumbProperty = vertical ? 'top' : 'left';