getAriaValueText on Slider not working
See original GitHub issueThe getAriaValueText prop doesn’t work for Slider even in the examples of the docs.
- This is not a v0.x issue.
- I have searched the issues of this repository and believe that this is not a duplicate.
Expected Behavior 🤔
When function is provided on getAriaValueText prop for Slider, it should display the return string value in the label.
Current Behavior 😯
Right now it is showing value in the label which shouldn’t be the case.
Steps to Reproduce 🕹
Link:
Context 🔦
I am trying to show the selected value as label on slider.
Your Environment 🌎
| Tech | Version |
|---|---|
| Material-UI | v4.3.0 |
| React | 16.8 |
| Browser | Chrome |
| TypeScript | x |
| etc. |
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:8 (1 by maintainers)
Top Results From Across the Web
getAriaValueText on Slider not working · Issue #16798 - GitHub
The getAriaValueText prop doesn't work for Slider even in the examples of the docs. This is not a v0.x issue. I have searched...
Read more >getAriaValueText of the Slider from material ui has no effect
getAriaValueText adds a aria-valuetext attribute to the generated slider markup and shows the updated value of the slider for assistive ...
Read more >React Slider component - Material UI - MUI
Slider. Sliders allow users to make selections from a range of values. Sliders reflect a range of values along a bar, from which...
Read more >How to use Reactjs Material-UI Slider component
We need to add two props for showing a tooltip. valueLabelDisplay and getAriaValueText. valueLabelDisplay handlers when to show the tooltip and ...
Read more >Slider: Spectrum Web Components - Adobe Open Source
import '@spectrum-web-components/slider/sp-slider.js'; ... loaded via a dynamic import to reduce JS payload for applications not leveraging this feature.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@junaidatique
getAriaValueTextaffects thearia-valuetextattribute (https://github.com/mui-org/material-ui/blob/ede30a5a0af518e780414bd853b93bb275863f48/packages/material-ui/src/Slider/Slider.js#L700) maybe you’re looking for thevalueLabelFormatprop?👋 Thanks for using Material-UI!
We use the issue tracker exclusively for bug reports and feature requests, however, this issue appears to be a support request or question. Please ask on StackOverflow where the community will do their best to help. There is a “material-ui” tag that you can use to tag your question.
If you would like to link from here to your question on SO, it will help others find it. If your issues is confirmed as a bug, you are welcome to reopen the issue using the issue template.