-
-
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
Add alternative <dialog> element renderer #338
Conversation
The When manually adding and removing the This seems to suggest animation is possible so we might just have to use another attribute to fire the transitions. |
@timfish Ignore the transitions part, it will be gone soon. |
The tests are still failing but I've managed to get transitions working in normal usage by having transition on @StrahilKazlachev do you know why |
All but 4 of the transition tests now pass in Firefox with the polyfill. |
I've now tested this working on Chrome, Chrome Android, Firefox, Safari Mac, Safari iOS 11, Edge and IE11. They only differ on dialog positioning and checking the browser support this is entirely down to the use of Chrome, Chrome Android, Safari Mac, Safari iOS 11 Firefox Edge and IE11 Can we just go flex and remove |
I took my time to think on this and for now I don't like the |
@StrahilKazlachev That's a good idea, I'm already using this renderer like:
|
Go for it! 😊
…Sent from my iPhone
On Jan 28, 2018, at 10:26 AM, Tim Fish ***@***.***> wrote:
@StrahilKazlachev That's a good idea, I'm already using this renderer like:
.plugin('aurelia-dialog', (config: DialogConfiguration) => {
config.useDefaults();
config.useRenderer(CustomDialogRenderer)
})
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@StrahilKazlachev I'll rework this into its own renderer and revert all the other changes. |
Is this ready to be merged? |
It doesn't touch any existing code so it's pretty safe to merge. The docs will need some updating to show how to use the alternative renderer but it's probably worth it getting some testing in a beta first. |
@timfish I think @dannyBies and I would be more than happy to beta test this ;). |
This is not a separate package - the new |
Sounds like the easiest thing to do for now would be to just host this renderer in another package? It just makes maintenance a bit of a pain. For those wanting to test it now, if you're using TypeScript you can just copy
For JavaScript you'll have to convert it or build and use the dist output. |
OK, so lets make this to 1 commit with the appropriate commit message and I'll get it in. |
Does Github not have the option to squash into a single commit on merge? |
@timfish it does.. but commit message - i don't remember |
Looks like a lot of code is copy-pasted from Rename |
@Alexander-Taran On the couple of private repos that I maintain it does offer a custom commit message on squash merge and nothing in the original fork/branch ends up in the master commit history @CasiOo I'll rename and refactor out all the copy-paste |
@timfish I'd suggest then if you don't want to rebase / squash yourself just to provide a "final" commit message so it'd be easier to copy/paste it when merge/squash will happen (-: |
@Alexander-Taran I'll rebase it. Looking through the duplication between the two renderers I could reduce it by making |
@timfish correct about the complications, there is a lot of work to be done around the |
I did try rebasing but it seems beyond me this morning. If you can squash merge this with a commit message something like below, that would be great:
|
Perhaps the docs could do with some details on using the new renderer?
It will also require custom CSS to stop it looking awful. |
Will do later today. |
Yeah, the CSS should probably be renderer specific and editing the inline string is fragile at best! Ah, also worth noting that native dialog needs polyfilling still on many browsers. |
I'd leave styling of native to the end user.. so it would require some fiddling and discovering the need in polifil as well (-: |
Wow, amazing work! I really would like to see it merged soon. |
It would be really great to see this merged! |
@timfish If I understand correctly, to polyfill this I need to do something like this: window.dialogPolyfill = await SystemJS.import("dialog-polyfill"); // or require() or import() or whatever Did I get that right? |
Its expecting |
No documentation? |
@glen-84 there.. I created a pull request (-: |
I wont repeat everything I've already said in #335.
This would finally close #1 and improve accessabilty.
Breaking Changes
startingZIndex
setting is no longer requiredposition
callback is no longer passed overlay element as it no longer existscenterHorizontalOnly
is not used. CSS only.To do