Skip to content

Slider: Is there a way to change the content of the aria-valuetext property? #6316

Answered by reidbarber
AlmeroSteyn asked this question in Q&A
Discussion options

You must be logged in to vote

Oh, I think I see what is happening. The percent format option is just formatting the value, it doesn't have any other context. So .5 = 50%, 1 = 100%, etc. This is just how Intl.NumberFormat() works, which formatOptions goes to.

I think you'll want to set minValue to 0, maxValue to 1, and bring down the step to something like 0.01.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@AlmeroSteyn
Comment options

@reidbarber
Comment options

@AlmeroSteyn
Comment options

@reidbarber
Comment options

Answer selected by AlmeroSteyn
@AlmeroSteyn
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants