Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

aria-disabled and descendant elements #1467

Closed
wants to merge 6 commits into from

Conversation

scottaohara
Copy link
Member

@scottaohara scottaohara commented Apr 21, 2021

This is some draft wording I have in place on how to resolve #1130.

Essentially, I do not want to break expectations with how <fieldset disabled> works compared to <div role=group aria-disabled=true> in regards to nested links. In the former links are not disabled because HTML does not allow <a href> to be set to the disabled state. The latter will expose an <a href> or a <div role=link> as being in the disabled state. This should not happen and user agents that presently do this are likely not matching the reality of what the HTML author expected would happen.

So, yeh. Happy to get feedback on what I've done so far and make adjustments as need be. But, am quite against the idea of the disabled state on an ancestor element impacting descendant links. So whatever we do here, I want to make sure that is clearly not what is expected here, unless it can be very clear this would only apply to role=link and NOT <a href> HTML links.


Preview | Diff


馃挜 Error: 504 Gateway Timeout 馃挜

PR Preview failed to build. (Last tried on May 5, 2022, 12:47 PM UTC).

More

PR Preview relies on a number of web services to run. There seems to be an issue with the following one:

馃毃 Spec Generator - Spec Generator is the web service used to build specs that rely on ReSpec.

馃敆 Related URL

<html><body><h1>504 Gateway Time-out</h1>
The server didn't respond in time.
</body></html>

If you don't have enough information above to solve the error by yourself (or to understand to which web service the error is related to, if any), please file an issue.

index.html Outdated Show resolved Hide resolved
@scottaohara scottaohara marked this pull request as ready for review June 2, 2021 14:48
@jnurthen jnurthen requested review from cookiecrook and removed request for carmacleod July 1, 2021 17:47
cookiecrook
cookiecrook previously approved these changes Jul 1, 2021
index.html Outdated Show resolved Hide resolved
index.html Outdated Show resolved Hide resolved
scottaohara and others added 2 commits July 1, 2021 15:24
Co-authored-by: James Craig <cookiecrook@users.noreply.github.com>
Co-authored-by: James Craig <cookiecrook@users.noreply.github.com>
@scottaohara
Copy link
Member Author

friendly ping @jnurthen and @a11ydoer (or @smhigley since you thumbs upped) to get 3 reviews so we can merge this

index.html Outdated Show resolved Hide resolved
@pkra pkra added this to the ARIA 1.3 milestone Jan 12, 2022
In looking to address Sarah's comment, and re-reviewing the initial issue, I think I missed the mark on what needed to be called out here.  So, this revision is an attempt to simplify/clarify what I was trying to say before (that a link should not inherit the disabled state from a parent element).

This also removes the word "focusable" , as per the original issue a `<div role=textbox>` should still be communicated as being in the disabled state if a descendant of a `role=group aria-disabled=true`. 


Note: that the alternative here is to instead move forward with Aaron's issue #1632, and remove the allowance for a `group` to be marked as disabled.  The caveat I see here is that since `group` is allowed in a `listbox` and `menu`, a `group` should probably still be allowed to be marked as disabled in these contexts... so that's tricky.
@scottaohara scottaohara dismissed cookiecrook鈥檚 stale review May 5, 2022 12:47

PR has changed quite a bit since this review, so it should be reviwed again

@scottaohara
Copy link
Member Author

@jnurthen @pkra I've revised this PR quite a bit, so I've dismissed the previous approval.

@jnurthen
Copy link
Member

jnurthen commented Aug 2, 2022

Lets agenda+ this as I'm totally confused as to why we would want to prevent role=link from inheriting aria-disabled.

@jnurthen jnurthen added the Agenda label Aug 2, 2022
@scottaohara
Copy link
Member Author

@jnurthen just making a note that when this is discussed, another proposal is #1632

@scottaohara
Copy link
Member Author

Resolution from today's meeting.

close this PR. instead resolve to make a new PR that deprecates aria-disabled from role=group.

@spectranaut
Copy link
Contributor

Notes from meeting: https://www.w3.org/2022/08/11-aria-minutes#t07

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aria-disabled non-focusable descendents
6 participants