Skip to content

Commit

Permalink
[Slider]: Remove zero css class completely
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jul 23, 2018
1 parent 15d7b82 commit 56d45d6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion packages/material-ui-lab/src/Slider/Slider.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export type SliderClassKey =
| 'focused'
| 'activated'
| 'disabled'
| 'zero'
| 'vertical'
| 'reverse'
| 'jumped';
Expand Down
6 changes: 1 addition & 5 deletions packages/material-ui-lab/src/Slider/Slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {},
};
};

Expand Down Expand Up @@ -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';
Expand Down

0 comments on commit 56d45d6

Please sign in to comment.