-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Should be based on web standards HTML <dialog> element #335
Comments
The HTML 5.2 specification mentions an |
Great idea, now lets hope all the browsers and electron catch up soon enough |
It was added to chrome 37 so we don't have to worry about electron and the polyfill seems to work well as it appears to fix #1 on Safari. |
So lets see if this can be cleanly added in a |
As for accessibility: in my experience most screenreaders are still somewhat lagging in HTML5 support, but hopefully they'll catch up over time. I don't know how well the |
For backwards compatibility I think we'd probably have to include: <dialog role="dialog" aria-modal="true">
</dialog>
|
Some quick testing tells me support for the VoiceOver on Mac didn't announce that a dialog was opened in either Chrome or Safari, even with |
I managed to find some time this evening to hack about with a modified version of It looks like it will simplify quite a few things:
But would mean some breaking changes:
Oh and the default CSS for |
@EisenbergEffect I'm confused: this feature was merged in over a year ago. The native renderer source file is even included in the 1.1.0 tag. But when I look at the 1.1.0 dist files or the 2.0.0 branch source files the native renderer isn't present, and when I |
Apologies @RomkeVdMeulen .... I can't remember 😢 |
Not sure why it's in the change log, I've probably messed up something in the commits. It's in master, with other unreleased changes, some breaking. |
@StrahilKazlachev Are we ready for a release then? |
@EisenbergEffect can't say that, the build setup is out of sync, there are a couple commits in v1/v2 that must get in master, the community didn't give much feedback on the adoption of |
@StrahilKazlachev A couple of questions for you:
|
@StrahilKazlachev Did you loose track of this conversation? |
@EisenbergEffect no idea for alternative to
|
@bigopon Do you think you could help with getting this library over the finish line? |
Ill have a look with @StrahilKazlachev |
To me, it's not obvious what needs to be done, beside adjusting the build scripts of v1. About import + alternative renderer, it seems the only way to me. If we agree on that, will probably just need to make every work properly and released correctly. |
I think we should move forward with v2, keeping import as the mechanism for dynamic import. We can merge fixes from master into v2, and then move v2 to master. Then fix up CI with our new develop/master flow and move forward with the new release that uses Animator. Any objections? |
...so? Any progress? |
@RomkeVdMeulen ill start this later today or tomorrow |
Thank you @bigopon and thanks @RomkeVdMeulen for the gentle nudge. I apologize for lack of communication on this, I was traveling the other week and then managed to throw my back out over the weekend, so I'm a bit behind... @bigopon has been a champion of improving Aurelia's plugins (and core) lately, so I'm confident we'll get this squared away. |
No problem! Thank you all for your efforts! |
Looks like the changes have been merged. Can we expect 2.0.0-rc6? |
Yes. There's a collection of releases going out this week. |
I've been trying it out and it works like a charm! Thanks everyone for the hard work, especially @timfish. AFAIK this bug can be closed. |
Aurelia is forward looking and supports web standards so shouldn't aurelia-dialog be built using the HTML dialog element, be based around that API and use the relevant polyfils to aid with older browsers?
Obviously the API is not as nice as the
aurelia-dialog
API (ie. no async) so it might be worth wrapping it but in Chrome 64 testing these examplesshowModal()
appears to fix #1 (focus issues) and will no doubt be more accessible to screen readers than the current implementation.The text was updated successfully, but these errors were encountered: