-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
[Slider] track="inverted"
does not work
#48
Comments
Temporary workaround of mine for anyone curious (i'm using the vertical variant here) const [valuePercentage, setValuePercentage] = React.useState<number>(50);
<Slider
...
slotProps={{
track: {
className: "...",
style: { height: `${100 - valuePercentage}%`, top: `0` },
},
}}
/> |
@Fireclunge Thank you for reporting this bug. Currently, when the track is inverted, the In the meantime, you can use the workaround demonstrated in the CodeSandbox example: https://codesandbox.io/s/green-grass-dv5q33?file=/Demo.js. This workaround applies the |
Hi, Can I work on this issue? :) |
track="inverted"
does not work
In the new API, the current Track component that represents the "fill bar" of the slider will be deprecated. The name "Track" ( The
|
UPDATE: Hooks and contexts will not be in the public API (at least for now)
To achieve this, either make the slider RTL, or style the track and indicator to make it appear "inverted" |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @Fireclunge How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Duplicates
Latest version
Steps to reproduce 🕹
Link to live example:
https://codesandbox.io/s/practical-knuth-qgjfw9?file=/Demo.js
Steps:
Current behavior 😯
track="inverted" does nothing. It is the same behavior as the default "normal"
Expected behavior 🤔
The slidebar track should come in from the right as opposed to the left
Context 🔦
I'm trying to get the track to come in from the right
Your environment 🌎
npx @mui/envinfo
The text was updated successfully, but these errors were encountered: