You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Jaws announcements not working - ARIA role should be Slider instead of Separator #446
Describe the bug
When Jaws is ON and I focus on gutter and press arrow keys - Left/Right or Up/Down gutter not getting resized it remains in same position
Suggestion -
Using Slider role on gutter instead of Separator works
Considering there was a PR to flip it to role separator from slider - we need to decide whether we want to allow it to be customizable or deicide which of the roles is the correct one for a split component
Euhm. I did dig in a bit. There is a catch-22 here.
The thing is, it is both a separator (as discussed in #349), but at the same time it is also a slider as it allows you to "input a new value for the placing of the separator"
I will try to figure out if adding both is allowed.
@Harpush, I consulted the W3c. role mapping is allowed.
It will use the first supported one tho.
So if we put the role like this:
<splitterrole="slider separator" />
It will address the issue, but it will also effectively make it a slider. (which it is)
A comment in the code should explain this a bit, so we don't swap it again and break the expected functionality.
Addendum: This has already open issues in the W3C ARIA repos, and a new role for this kind of element is being considered. Once that lands, we should put that role first.
Activity
sumegha26 commentedon Jul 16, 2024
any update on this ?
Harpush commentedon Jul 18, 2024
Considering there was a PR to flip it to role separator from slider - we need to decide whether we want to allow it to be customizable or deicide which of the roles is the correct one for a split component
SanderElias commentedon May 19, 2025
@Harpush is this something we still need to attend to? If not, we can close this issue.
Harpush commentedon May 19, 2025
I am not sure... I am not that knowledgeable about ARIA and what's correct as role here
SanderElias commentedon May 19, 2025
Euhm. I did dig in a bit. There is a catch-22 here.
The thing is, it is both a
separator(as discussed in #349), but at the same time it is also aslideras it allows you to "input a new value for the placing of the separator"I will try to figure out if adding both is allowed.
SanderElias commentedon May 19, 2025
@Harpush, I consulted the W3c. role mapping is allowed.
It will use the first supported one tho.
So if we put the role like this:
It will address the issue, but it will also effectively make it a slider. (which it is)
A comment in the code should explain this a bit, so we don't swap it again and break the expected functionality.
Harpush commentedon May 19, 2025
We can also add an input for it... Might be an overkill though
SanderElias commentedon May 19, 2025
@Harpush, Update on the issue: mdn separaotr docs
According to this, we need to add the value/min/max things to make it focusable. The question is, would JAWS agree?
I don't like to add an extra input for this. It extends the API for very little benefit, but I think the bug deserves some attention.