Syntax - Tasty Web Development Treats

Modals, Popups, Popovers, Lightboxes

4 snips
Apr 17, 2023
Dive into the world of web design as the hosts unravel the differences between modals, popups, popovers, and lightboxes. Discover how URL complexities can affect modal usability and the potential user confusion they may cause. Learn about the 'inert' attribute that makes elements non-interactive, enhancing accessibility. Get tips on creating engaging modals and dialogues with the new HTML features, along with practical examples for better user experience. It's a feast of insights for web developers!
Ask episode
AI Snips
Chapters
Transcript
Episode notes
INSIGHT

Defining Modals

  • Modals are intentionally disruptive, demanding the user's full attention.
  • Unlike cookie banners, modals prevent interaction with the rest of the page.
ANECDOTE

URLs for Modals?

  • Wes Bos questions using URLs for full-screen modals, as users might mistake them for new pages.
  • Scott Tolinsky agrees, citing websites that overuse this, forcing users to click "back" repeatedly.
ANECDOTE

Modal Escape Key Issue

  • Wes Bos describes a checkout modal issue: Pressing "escape" unfocused inputs instead of closing the modal.
  • His solution: Blur the input on first "escape" press, focus the close button, then close on the second press.
Get the Snipd Podcast app to discover more snips from this episode
Get the app