-
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
Review accordion example updated with implementation of optional keyboard interactions #401
Comments
Given the significance of the updates made in pull request #397 by @gerardkcohen, This commit adds a link to a review issue to gather feedback on the updates and collect issues.
The implementation actually does not prevent all accordions to be collapsed at the same time, as stated in the description. Click on the expanded accordion collapses it. |
The accordion example has odd mouse behavior, in that clicking on either the Accordion-title or Accordion-icon span inside the Accordion-trigger button do not trigger the open/close action. |
The only way I can work around this is to use a fake button. The reason being the nested elements do not inherit the properties of the parent button element.
Then for the toggle icons use Or if the preference is to not use FontAwesome just the |
@carmacleod I have a fix coming soon |
@Decrepidos
A solution that worked for me is setting pointer-events to 'none' like so: .Accordion-title, The only downside is pointer-events aren't fully supported in all browsers (canIuse states 94% browser support atm) and as far as I know this solution doesn't have a negative effect on accessibility (?). |
@gerardkcohen pointer-events is a new one for me. Thanks for mentioning it. |
Since all of my code was taken out, the accordion triggering elements are now broken in IE11. Confirmed on Win7. |
@accdc This is caused initially by using Array.from() which is not available in IE 11. It would be easy enough to fix, but hoping someone (cc @mcking65?) can provide clarification on browser support. I figured ARIA 1.1 would only be supported on newer browsers anyway, so there was flexibility use newer JS features. I can certainly roll back for compatibility. |
@gerardkcohen, sorry, I am long overdue to write up the browser support statements for the authoring practices examples. What our task force has agreed on is that the examples need only work in recent versions of each browser at the time the example is developed. We are, though, including IE in the list. So, IE 11 does need to work along with recent versions of Chrome on both Win and Mac, Firefox on Win, and Safari on Mac. For a few examples, we are also testing on mobile Safari, but we have intentionally punted on a lot of mobile issues until at least release 2. |
@mcking65 Great, thanks for the confirmation! I will work it out. |
Per feedback in issue #401, make js compatible with IE 11.
Don't know if you're aiming to include Edge for the browser support as well. I just gave it a try with the accordion example (Edge 15, Windows 10). The problem is that the content (besides for the first element) won't appear when triggering the close/open by clicking the apprpriate accordion label/icon. However, it seems that an empty is created when clicking open one of the accordion elements. Strangely, the content will appear when hovering the appropriate html with the developers tools within the DOM explorer
|
@finalborgo Thanks for the heads up. Looks like part of your message is missing, so not sure what empty XXXX is created. In any case, I will look to test on Edge 15 and Windows 10. |
We have not done any work to support Edge. That could potentially come in a later release depending on Edge support levels for ARIA, assistive technology support for Edge, and importance in the market place. The goal of practices is not to demonstrate how to engineer code that works in every browser but to focus on demonstrating best use of ARIA in support of assistive technologies. That said, if our examples do not work in the most common browsers on the most common platforms, then we can'reach our intended audiences. So, we want code that will work in at least one browser that people in our audience are likely to have. |
@finalborgo @mcking65 I issued PR #502 that addresses Edge bugs. Not vital, but it was an easy fix. |
modified examples/accordion/accordion.html: Remove link to review issue #401.
All issues related to this change addressed; closing review. |
@gerardkcohen refactored the
accordion example
to simplify the code and add support for the optional keyboard interactions, including Up Arrow, Down Arrow, ctrl-PageUp, ctrl-PageDown, Home, and End.
This issue is to capture feedback on the updated example.
The text was updated successfully, but these errors were encountered: