Shopify / shopify-app-bridge

https://shopify.dev/docs/api/app-bridge
82 stars 9 forks source link

Polaris <Tooltip> component does not work in modal #376

Open noelgoodday opened 3 weeks ago

noelgoodday commented 3 weeks ago

Describe the bug

Tooltips don't display when used in a component that's rendered within the AppBridge modal.

This might be related to https://github.com/Shopify/shopify-app-bridge/issues/316 as it's yet another Polaris component that doesn't work with this modal.

Zetxus commented 3 weeks ago

ColorPickers are the same. Pretty much anything that requires some form of an extra element to show up over the current content will instead be below the Modal.

And just to throw this in in case someone suggests it - yes, using a Modal with an src attribute does fix this. However due to it being limited as mentioned in this comment and the few below it https://github.com/Shopify/shopify-app-bridge/issues/364#issuecomment-2144431103 it does not serve as a reliable fix for any complicated solutions.