Premium

Delete Dialog and Tooltips Through Portals

By FrontendAtlas Editorial · Updated Nov 19, 2026

Challenge summary

Fix a settings screen whose delete dialog and help tooltips are clipped by a card: portal both into the body, keep focus inside the dialog, make the page behind it inert and unscrollable, and flip a tooltip that would leave its panel.

What you'll practice

  • Render a dialog and tooltips through portals, and explain why the parent element is the wrong place for them here.
  • Move focus into a dialog, keep it there with Tab and Shift+Tab, and give it back on close.
  • Make the page behind a modal inert and unscrollable, and undo both on every way out, including an unmount.
  • Measure a tooltip before paint and flip it against the panel that clips its button.

What Premium unlocks

Premium unlocks the runnable workspace, behavioral checks, implementation walkthrough, and edge-case discussion.

Free related practice

Public interview reports: Juejin (March 2020) · Binance frontend interview questions

Upgrade to FrontendAtlas Premium to unlock this challenge. Already upgraded? Sign in to continue.

Premium is $24 a month or $99 a year, less in many countries.