-
Notifications
You must be signed in to change notification settings - Fork 344
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
Two accordion examples, one basic and one of a group with only one open accordion #1834
base: main
Are you sure you want to change the base?
Conversation
It seems to me that the Basic Example has no difference to Disclosure. I wonder if we need the same example under two different terms? |
bcae082
to
732522e
Compare
Thanks @smhigley for the changes.
|
@smhigley Works fine when you use the TAB key or using the rotor, just goes to the button element element, but no information about the button being disable when Also I think there needs to be some visual indication when the open region cannot be collapsed, since there is a visual affordance that it can be. |
I don't see aria-hidden attribute on Edge, Chrome browser (Windows OS). Jemma can see it in Mac OS. |
@smhigley |
@smhigley I think we also need to add more of a description of the accordion behavior in each example, indicating whether one will always be open or not. |
It is used to hide the "*" in the labels for the |
@smhigley will write the test procedure. |
@mcking65 I think this accordion would not be able to make it to APG 1.2. From quick testing using NVDA, there is mismatch between visual and screen reader annoucment. For example, the accordion was expanded visually but the screenreader says it is "unavailable expanded". Furthermore, "Jump to" funtion was not implemented either. |
This has to be that way because of aria-disabled=true, since it can only be opened but not closed. I don't see any error in this, but the match of screenreader output and visual representation. The only problem is that the initial aria-disabled is missing. It is added only after the operation |
@JAWS-test thanks for great feedback! It makes sense. It seems that we need to work on aria-disabled more. |
fd7a292
to
e316dfc
Compare
@mcking65 I updated the roles, tests, and related example links. Let me know what you think of it now :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will raise a separate issue for my suggestions.
Related to #1830
This is an example for the purpose of discussion: it demonstrates having two separate accordion examples; one is a basic set of independent accordions, and the other is a grouped accordion example with the restriction of only having one accordion open at a time.
This isn't ready to be merged or formally reviewed -- it's missing documentation updates and tests.
Basic accordion preview link
Group accordion preview link
Review checklist
Preview | Diff
Preview | Diff