react-native-web icon indicating copy to clipboard operation
react-native-web copied to clipboard

Modal styles

Open gesposito opened this issue 6 years ago • 4 comments

Is your feature request related to a problem? Please describe.

I need to make it so Modal has an higher z-index

Describe a solution you'd like

getAnimationStyle in ModalAnimation might parse the style property and append styles.

Describe alternatives you've considered

I might patch it with patch-package

Additional context

gesposito avatar Nov 23 '20 16:11 gesposito

Please describe the actual problem that leads you to believe you need to control the zindex

necolas avatar Nov 23 '20 17:11 necolas

It is common for mobile apps to have absolute positioned elements, be the top header, search bar, or buttons on the bottom

when a Modal is being shown we want to make sure all elements are covered "full screen"

using portals with no z-index we give all elements the same stacking context, meaning we loose control of what is prioritized (a Modal can be declared anywhere in the codebase)

gesposito avatar Nov 24 '20 08:11 gesposito

Modals are appended to the document with a zindex. Please provide a test case for the problem, then I'll reopen https://github.com/necolas/react-native-web/blob/master/packages/react-native-web/src/exports/Modal/ModalContent.js#L59

necolas avatar Nov 24 '20 16:11 necolas

Following up in #1820

gesposito avatar Nov 25 '20 11:11 gesposito