Pad date range sliders to fix search facet animation issues#1574
Conversation
tdonohue
left a comment
There was a problem hiding this comment.
@ybnd : Overall, I agree that the slight alignment issue on main looks a little odd. However, I found that with this tiny PR, the right slider cannot be moved all the way to the right side. Here's a screenshot which shows a tiny sliver of green bar on the right of the right slider:
If we can make it so the bar doesn't extend past the right slider, then this PR would be fine with me. Otherwise, I feel the current behavior is slightly "better" (even if the range slider is slightly misaligned with the start/end date fields above it).
So handles don't jut out when set to the min/max
4d12a29 to
dac8524
Compare
|
Apparently this happened only at some viewport widths, thanks for catching it! When resizing slowly you can see the position of the element jitter a little, and once in a while the slider juts out from under one of the handles (also on the left side sometimes!). With the current CSS I haven't been able to replicate either problem. |
DSC-1367 Approved-by: Vincenzo Mecca


References
Add references/links to any related issues or PRs. These may include:
Description
Currently, date range sliders in search facets cover the full width of the facet, which causes the handles to jut out a little bit to the left/right.
This works fine, but causes those handles to get pushed behind the facet's padding during the collapse/expand animation.
This PR fixes this by padding the sliders so that the ends of handles at the min/max positions are flush with the slider itself
date-range-slider-animation-after.mov
Instructions for Reviewers
Confirm that
Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You need not complete this checklist prior to creating your PR (draft PRs are always welcome). If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
yarn run lintpackage.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.