Replace confirmation dialog with modal dialog.#3932
Conversation
|
Wouldn't it be simpler to use |
|
@dgw |
|
Hello, late into the discussion, sorry ! I'm all OK with the principle. Is there any benefit in introducing a new |
|
Maybe then we could easily expand on this modal window to deal with edits too ? |
|
Thoughts, @dgw & @LeoColomb ? |
I like that idea. Not to scope-creep this PR, of course, but in the future. Once we have one type of modal set up it makes the next one(s) easier. :)
Agreed that the styles for this should just go in the existing It's not that big of a deal to fetch one extra CSS file with modern HTTP keepalive/pipelining/other fun stuff, and even less of one if caching is set up correctly. I could also see keeping it in a separate file for source clarity—but the |
Can't say better than @dgw, everything is said. 👍 |
|
Late concern : how does this play with accessibility ? For example, could @lilmike test this PR and report ? |
|
@ozh I tested this pr, it works fine for my screen reader. The dialogue hides the main portion of the page so I can only see the dialogue, which is a good thing, to be clear. The number of dialogues I see on websites that silently open up at the bottom of a page and I have no idea they're there until I start to wonder why clicking a button didn't do anything lol. Great job @infinitail |
|
Thanks a lot for reporting @lilmike |
- more semantically correct HTML on the modal - modal style tweaks - jqueryfication of JS code and better handling of escape
dgw
left a comment
There was a problem hiding this comment.
Ooh, getting rid of ancient CSS technology (prefixed properties) 😀



I replaced the use of JavaScript's confirm() with an HTML modal when deleting URL links in YOURLS.