-
Notifications
You must be signed in to change notification settings - Fork 346
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
Accessibility #68
Comments
Because I do not have a screen readers, so it is difficult to reproduce the problem. About add a hidden range input element to compatibility, is refers to the events would only on the range input trigger on a screen reader? If yes, that would be very complicated to modify. |
It wouldn't be tricky. Just add an |
Whether only need to add a hidden input( |
you want the aria-hidden attribute on the current HTML for vue-slider-component, or it will hide the range slider from the screenreader - exactly the opposite of what you want to do! |
I get it, I will support this feature. thank for your issue, this will be a meaningful update. |
amazing, thank you! |
I added some accessibility attributes, but I do not have a device to test, so can you please help me test it? I did not update the new version because I did not know if it was available. test url: https://nightcatsama.github.io/vue-slider-component/example/ this is my references ant's slider. |
Still doesn't work, because the screenreader doesn't know it's a slider. trying setting |
This attribute exists. <div
//...
role="slider"
:aria-valuemin="min"
:aria-valuemax="max"
:aria-valuenow="val"
aria-disabled="false"
aria-hidden="false"
>
..
</div> |
I'm not able to change it using a screen reader :( |
Can you tell me whether the slider on the ant can be used? slider |
Nope, unable to use that with VoiceOver on Safari. |
It may still have to use the |
See the article I linked to before: http://www.coolfields.co.uk/2016/05/text-for-screen-readers-only-updated/
stuff like that is pretty bulletproof |
I thought that this applies only to the text. I'll give it a try. |
nah, works for everything - it's more commonly implemented as |
I have already corrected. demo Then I found that there is a problem with this scheme, not support for the range mode and custom data mode. |
huh? not sure i follow |
Don't work? |
Oh, right, I misunderstood. That works, mostly! It reads out the existing value and it's possible to change it. The only problem is that the visually displayed slider, while the number displayed changes, the position of the handle does not. |
Do you mean that the slider position does not move when the value of input changes? |
Yes, exactly. The value has changed, but it isn't reflected in the UI. Not a huge issue as it won't really affect anyone (the people using screenreaders generally won't see the UI anyway), but worth fixing if it's an easy fix. |
I do not know where the problem is, and it's hard for me to debug. |
¯\_(ツ)_/¯ I think what you've done is enough - it works for people using screen readers now. Good job, thanks! |
Range mode is currently not supported for accessibility. Would it make sense to add two inputs in that case? (from/to) Not sure how screen readers will pick that up. |
Hello, |
So
I can't debug on the screen reader, if you can, please mention pr perfect components. Thanks |
|
So is aria-hidden= "true" a remained problems? If so, then I set it to false by default to have other effects. |
Yes. |
@spatras Cancel this attribute in |
Awesome! Thanks! |
Hi again! |
@spatras This is the code that was previously contributed by others. Can it be compatible with screen readers if it is removed? |
@NightCatSama That code doesn't make the slider screen reader compatible. It only appears when there is only 1 handle and also, it cannot be changed from the screen reader. Maybe was doing more previously, but right doesn't do anything. And previously, when you had |
@spatras Sorry, I don't know much about the compatibility of screen readers. Is it only necessary to delete |
Yes. Just that.
…On Sun, 11 Aug 2019, 13:02 NightCat, ***@***.***> wrote:
@spatras <https://github.com/spatras> Sorry, I don't know much about the
compatibility of screen readers. Is it only necessary to delete <input
class="vue-slider-sr-only" />?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#68?email_source=notifications&email_token=ADBYPXZI6XGX3CST2ISCONDQD7PUNA5CNFSM4DPAWHVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4A5YRQ#issuecomment-520215622>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADBYPXZFFLWS6ETS36FYVLTQD7PUPANCNFSM4DPAWHVA>
.
|
@spatras Already removed, please update to v3.0.35. |
Works great! Thank you! |
Hey!
This component currently doesn't work with screen readers - because it's made of divs, the screen reader doesn't know it's an input element and goes straight over it. I'd recommend duplicating the state to a hidden range input for screenreaders to use.
Also, are you fine if I use this library as an example in a talk of an input library which doesn't work with screen readers? It 100% isn't intended as an attack and it won't be the only library I talk about - most libraries in the Vue ecosystem have the same problem!
The text was updated successfully, but these errors were encountered: