Skip to main content
The Bike Shed

463: All about modals with Elaina Natario

36 min episode · 2 min read
·

Episode

36 min

Read time

2 min

AI-Generated Summary

Key Takeaways

  • Default to separate pages: Modals should only be used when page context is critical to the task, like adding table rows with many hidden fields. Otherwise, navigate to standalone pages to avoid shoehorning content into overlays unnecessarily.
  • HTML dialogue element advantages: The native dialogue element automatically traps keyboard focus within the modal, includes implicit ARIA roles, and provides open/close methods. It gained full browser support in 2022 after a decade of partial implementation across browsers.
  • Progressive enhancement pattern: Start by building standalone pages first, then add JavaScript to convert links into modal triggers. This allows command-clicking for new tabs, maintains URL sharing capability, and enables faster iteration without sacrificing core functionality.
  • Avoid interruptive patterns: Modals that appear without user interaction create poor experiences and qualify as dark patterns, especially when close buttons use low-contrast colors or unusual positioning. Always provide clear, accessible exit mechanisms including escape key support.

What It Covers

Thoughtbot designer Elaina Natario explains when to use modals versus separate pages in web applications, covering the HTML dialogue element's accessibility features, common design pitfalls, and best practices for implementation.

Key Questions Answered

  • Default to separate pages: Modals should only be used when page context is critical to the task, like adding table rows with many hidden fields. Otherwise, navigate to standalone pages to avoid shoehorning content into overlays unnecessarily.
  • HTML dialogue element advantages: The native dialogue element automatically traps keyboard focus within the modal, includes implicit ARIA roles, and provides open/close methods. It gained full browser support in 2022 after a decade of partial implementation across browsers.
  • Progressive enhancement pattern: Start by building standalone pages first, then add JavaScript to convert links into modal triggers. This allows command-clicking for new tabs, maintains URL sharing capability, and enables faster iteration without sacrificing core functionality.
  • Avoid interruptive patterns: Modals that appear without user interaction create poor experiences and qualify as dark patterns, especially when close buttons use low-contrast colors or unusual positioning. Always provide clear, accessible exit mechanisms including escape key support.

Notable Moment

A newspaper implemented a metered paywall modal with a deliberately hard-to-find close button using light gray text on white background, positioned on the left instead of the expected right side, targeting an older demographic with potential vision issues.

Know someone who'd find this useful?

You just read a 3-minute summary of a 33-minute episode.

Get The Bike Shed summarized like this every Monday — plus up to 2 more podcasts, free.

Pick Your Podcasts — Free

Keep Reading

More from The Bike Shed

We summarize every new episode. Want them in your inbox?

Similar Episodes

Related episodes from other podcasts

This podcast is featured in Best Cybersecurity Podcasts (2026) — ranked and reviewed with AI summaries.

You're clearly into The Bike Shed.

Every Monday, we deliver AI summaries of the latest episodes from The Bike Shed and 192+ other podcasts. Free for up to 3 shows.

Start My Monday Digest

No credit card · Unsubscribe anytime