In this article I will show you how to create a modal that pops up whenever you click a button. The main focus of the article will not be on the CS...
For further actions, you may consider blocking this person and/or reporting abuse
Good, what do you think about improving your example and to add a11y supporting?
Thank you sir. I'll work on including that and update on the codepen 😊
Thank you for the great demo. Is the overlay just there so you can close the modal by clicking outstide the modal or does it serve some other purpose?
You're welcome Alex. Asides that, the overlay also makes the modal more visible. If there were many content on the page, the overlay will blur out other contents making the whole focus on the modal itself
yes, that makes sense. thanks again
That is just super!
Thank you
This has a few accessibility concerns:
why didn't you use html's dialog tag
The dialog tag isn't supported on browsers like Safari. You need to lookout for that 👍🏾
Nice work. Adding some transtitions in so that the modal appearance wouldn't be as abrupt could be a nice touch.
Thank you nice idea Sanjay 👍🏾
Thank you
What is a modal?
Well done!
thank you, great post
Thanks I appreciate 👍🏾
Thanks. Works great!