Bye Bye Modals, Welcome <?dialog> element.

Bye Bye Modals, Welcome <dialog> element.

Creating a modal is such a complex thing in the world of frontend. You have to create a container, make sure that it's focus locked, make sure that its above everything else on the page, and it needs to be accessible while making sure that the user can close this whenever they want.

What if I told you browsers already have something like that in its specifications.

The <dialog> element!!!

A lot of the functionality that is required as a part of creating a modal is now embedded inside this <dialog> element. Which means when you use this element, you won’t have to write a lot code.?

In this tutorial video, I am going through the specification and implementing it so that people can understand how easy it is to use it in existing code base.

The video covers everything about the <dialog> element. I hope you liked it. I wanted to create a new channel for all of my frontend experiments and tutorials. So, if you have any suggestions or recommendation, I would love to hear it.

Till Next Time!

Akshay Krishna

Microsoft Certified - Front End Lead developer | CMS (AEM / Sitecore) Expert | Web Performance, Accessibility & Analytics Specialist | Agile Promoter

2 å¹´

Simply gold!

赞
回复

要查看或添加评论,请登录

Prateek Jadhwani的更多文章

  • Implementing WebAuthentication with FaceID or TouchID

    Implementing WebAuthentication with FaceID or TouchID

    TL;DR ? ∩ ? First of all, without wasting any time, the demo link is here: https://prateekjadhwani.github.

  • 10 Years in 10 Learnings

    10 Years in 10 Learnings

    I am not sure how the topic came about, but I was talking to a friend and somehow it ended up about writing this…

    4 条评论
  • Playing with Unity ML-Agents (Part -02) - Training a flying drone

    Playing with Unity ML-Agents (Part -02) - Training a flying drone

    Thank you for reading the Unity ML Agents article. If you would like to read the previous article, click on this link:…

  • Playing with Unity ML-Agents (Part -01)

    Playing with Unity ML-Agents (Part -01)

    Last Saturday, I wanted to look into ML Agents for no reason. Like literally for no reason.

  • It's the beginning of 2018, but is your website ready for css-grid?

    It's the beginning of 2018, but is your website ready for css-grid?

    What is css-grid? CSS-Grid is one of those new specifications that have been in implementation for 3 years now and were…

  • A CSS code to display code errors.

    A CSS code to display code errors.

    In this article I will be talking about a CSS Property that can be used in code editors to display errors. It seems…

  • ARKit Barn and Trees Landscape

    ARKit Barn and Trees Landscape

    This is me trying to create a barn surrounded by trees scene in AR. I hope you guys like it.

  • Hello World in ARKit

    Hello World in ARKit

    These are the 5 easy steps to create the hello world of AR app on an iPhone taking less than 2 min. At the end of this…

    1 条评论
  • Chrome implemented MHTML, but what is that?

    Chrome implemented MHTML, but what is that?

    Remember the time when you were browsing that site and you wanted to view the page offline, so you Right Clicked and…

社区洞察

其他会员也浏览了