Shopify/dawn

[Quick add modal] When switching variant the main page behind the modal scrolls

ludoboludo opened this issue · 0 comments

Describe the current behavior

When you're opening a quick add modal and it has many variants, you will need to scroll a little to change the variant option selected. When you do so, instead of scrolling back up on that container to show you the variant image, it's triggering the scroll on the background main document.
Video recording of the issue

Describe the expected behavior

Should be scrolling back to the top in the quick add modal only

Version information (Dawn, browsers and operating systems)

  • Dawn Version: 13+
  • Chrome Version 108.0.5359.124
  • macOS Version 13.1

Possible solution

Additional context/screenshots

Recording