-
Notifications
You must be signed in to change notification settings - Fork 45
Feat: improve llamalend slider #1553
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
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| format={formatUsd} | ||
| data={data} | ||
| adornment="dollar" | ||
| scale="power" |
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.
Just to be sure, we are going with this scale. Try the llamalend filters
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.
Tried to make it simpler, hope that's the case 😅. I can always reverted back to a simpler version without debounce
| ...sx, | ||
| ...(adornment === 'bands' && { | ||
| flexShrink: 0, | ||
| maxWidth: MaxWidth.sliderInput.bands, |
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.
Huh I would expect minWidth here to make sure it's wide enough to at least fill the adornment, not maxWidth :thinking_face:
| value={percentage ?? `${MIN_PERCENTAGE}`} | ||
| onChange={(value) => handlePercentageChange(value as Decimal)} | ||
| sliderProps={{ | ||
| 'data-rail-background': 'danger', |
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 don't think we want to hardcode this specific style for every instance of LTI
Created
SliderInputcomponent on top of theSliderandNumericTextFieldReplace the slider + input components with the new one
Llamalend filters menu not automatically closing anymore
Implemented non-linear scale for inputs
Updated Slider stories + llamalend tests
show all poolsbutton when no marketsSliderandInputscomponent with all variantsSliderwithSliderInputTradingSliderand Bands slider withSliderInputNumericTextField