Skip to content

Commit

Permalink
feat: withTracks is now true by default
Browse files Browse the repository at this point in the history
BREAKING CHANGE: `withTracks` is more commonly true than false,
so we are making that the default
  • Loading branch information
Brian Stone authored and stonebk committed Sep 27, 2019
1 parent e4e8ff8 commit a450420
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ReactSlider/ReactSlider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ class ReactSlider extends React.Component {
thumbClassName: 'thumb',
thumbActiveClassName: 'active',
trackClassName: 'track',
withTracks: false,
withTracks: true,
pearling: false,
disabled: false,
snapDragDisabled: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,30 @@ exports[`<ReactSlider> can render 1`] = `
}
}
>
<div
className="track track-0"
index={0}
style={
Object {
"left": 0,
"position": "absolute",
"right": 0,
"willChange": "",
}
}
/>
<div
className="track track-1"
index={1}
style={
Object {
"left": 0,
"position": "absolute",
"right": 0,
"willChange": "",
}
}
/>
<div
aria-valuemax={100}
aria-valuemin={0}
Expand Down

0 comments on commit a450420

Please sign in to comment.