ui-kit icon indicating copy to clipboard operation
ui-kit copied to clipboard

Can't make InfoModalPage scrollable? Or use Emotion styled components?

Open jtabone16 opened this issue 3 years ago • 4 comments

I can't figure out how to make InfoModalPage scrollable. I've tried styling InfoModalPage as a styled component with no luck. I also noticed Emotion styled components don't even render in the DOM. How can I make InfoModalPage scrollable when there's vertical overflow?

jtabone16 avatar Mar 28 '22 17:03 jtabone16

Hi 👋,

The modal components already have the content part scrollable. You can check the examples here:

https://docs.commercetools.com/custom-applications/api-reference/commercetools-frontend-application-components#infomodalpage

2022-03-29 09 26 11

Can you maybe describe a bit more your use case if you are expecting something else? Thanks

emmenko avatar Mar 29 '22 07:03 emmenko

Screen Shot 2022-03-29 at 8 38 10 AM

@emmenko this global style defined in ApplicationShell was preventing the modal from being fully scrollable. It was scrollable to an extent, but there was some content stuck on the bottom. I ended up adding this ugly bit of code to override it, which works.

Screen Shot 2022-03-29 at 8 39 19 AM

jtabone16 avatar Mar 29 '22 15:03 jtabone16

Hmm, I'm still confused as to what the problem is.

Can you provide a screenshot or a gif to show the original problem you had and the expected behavior you are trying to have?

emmenko avatar Mar 29 '22 16:03 emmenko

Huh weird I'm seeing different behaviors in the local and deployed apps. Locally, I'm seeing the scrolling issue. However, the deployed app is fine. See the gif below:

Screen Recording 2022-03-29 at 02 53 35 PM

jtabone16 avatar Mar 29 '22 18:03 jtabone16