This project is an attempt to mimic + improve the slider component(s) that Homevest currently has in production.
Below is a comparison of the sliders in production vs. the sliders in this repo.
- Added debounce to onChange handler for a smoother UI
- Used semantic HTML for inputs for better accessibility across browsers (vs. using divs with roles)
Some further improvements can be made to the sliders in general and to match more closely with the original sliders :
- Match font size + colors for labels and copy
- Add media queries for screen-width for responsiveness
- Match slider bar size
- Match slider thumb outline width
- Add more complete test coverage, only a few tests have been written
- Improve 'grab' vs. 'grabbing' cursor behaviour
In the project directory, install packages using
npm install
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.