-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
532/slider enhancements #660
Merged
Merged
Changes from all commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
dd6d186
Adding hasHistogram prop for use in css later
eriklharper 0a978e8
refactor: replacing borders with box-shadow and increasing the hitbox…
eriklharper 6115675
fixing the minValue handle position post-refactor
eriklharper 414c179
fix: handles not perfectly centered at both ends of the track
eriklharper fae8d40
Attempt at using getBoundingClientRect to change positioning
eriklharper d2ed0db
got a poc of it working! still more to do to make this bulletproof t…
eriklharper 6a4c81c
Removing unnecessary wrapping span
eriklharper 1c660f5
feature: prevent handle labels from extending past edge of slider (no…
eriklharper 0e190da
fix: removing unnecessary left position after refactor
eriklharper 6e7696f
feat: preventing minValue handle labels from extending past the edge …
eriklharper 0222032
fix: correcting placement of min precise handle
eriklharper 545c994
fix: precise handle position
eriklharper d6d9e67
fix: precise handle label positions
eriklharper ecaacd4
feat: only min and max tick labels appear for precise ranges
eriklharper f149f26
restoring handle bg color
eriklharper cd00a3d
good start to object collision detection for hiding min tick label. …
eriklharper 20ca5f2
breaking change: start of major layout refactor that moves away from …
eriklharper a9b968d
refactor fixes: handle and labeled handle
eriklharper 55cd59a
refactor: removed need to track handle labels in state. Transforming…
eriklharper bdbdbd3
fix: moving to flex display since labels need to have a margin but th…
eriklharper 5f086be
Merge branch 'master' of github.com:Esri/calcite-components into 532/…
eriklharper 69f3a8e
fix: range button positions
eriklharper 3cd1a37
fixing a couple css bugs
eriklharper 66bf0e5
Removing static JSX that was causing stencil warnings
eriklharper bdcaa3d
feat: hiding bounding track labels for precise handles with ticks whe…
eriklharper bc7bd83
adding all histogram permutations
eriklharper ec9e37b
feat: moving labeled range handles both to the bottom when using a hi…
eriklharper ad7b5c2
feat: adding number formatting with toLocaleString
eriklharper 8a336ec
adding missing demos and moving histogram non-precise labels below th…
eriklharper 29b0c92
fix: moving all histogram labels and precise handles below track
eriklharper 2fa4251
Removing unnecessary css after previous refactor
eriklharper 9c41b49
Only showing endcap tick labels when precise label handles are used o…
eriklharper 019838d
fix: font size adjustments per design and fixes for precise handle po…
eriklharper 89795d6
converting tick labels to endcap labels for labeled ticks with precis…
eriklharper 7a12500
more positioning bug fixes
eriklharper 97da0af
endcap tick label margin adjustment
eriklharper 11e3f0e
more endcap styles
eriklharper d6a31a9
fixing tick label bugs
eriklharper 15a58af
finally getting bounding track label hiding logic working
eriklharper 2eec824
fix: endcaps shouldn't display for non-precise or non-labeled handle …
eriklharper 347cf94
adjusting slider demo page to add dark versions
eriklharper 67a522f
Fixing the case where you want the value 0 to stay centered over the …
eriklharper 3ea6678
feature: spacing range labels apart when getting too close. Next ste…
eriklharper d9cfe00
first start to the hyphenation logic
eriklharper 12b9fd2
fix: perfect hyphen centering and using pure css with responsive ems …
eriklharper 02000ba
removing unneeded css
eriklharper ad95d41
fix: precise css bugs discovered from storybook setting precise=false
eriklharper 020ce35
shrinking focus square to around 24x24
eriklharper 9814b70
fix: shortening white gap between ticks
eriklharper 0945b90
feat: adding histogram highlighting for single handle sliders
eriklharper 4eb616c
fix: small-value overlap issues
eriklharper b262d9f
fix: preventing the jumping effect that occurs when handles butt righ…
eriklharper 8956acb
fix: prevent hyphenated range labels from extending past edge of slid…
eriklharper File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what are all these magic pixel values in the translate y position?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
7px
is half the handle size, so I suppose I could do$handle-size / 2
for that and the-8px
is the correct amount ofy
distance needed to place the center of the handle circle at the end of of the track line. Since the handle is 7x7 you would think that the 8 could just be 7, but it needed an extra pixel for some reason.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found out why it has to be
8px
in the y direction:.track { height: 2px }
. Because the track element is set to 2px height, if you bump that down to 1 and change the transform y to 7px you'll see the circle centered on the track line, so that's why it needs to be 1 pixel more to get it to center.