In itwinui-react 1.48.0, the Modal component uses iui-dialog-wrapper, which creates a stacking context and prevents children's z-index from being applied correctly. (regression)
So I've added a z-index of 999 to the wrapper, which results in the correct behavior:
I was going to make this change in css and release another 0.X version but that would require more PRs and result in merge conflicts so I've just added a small style tag to the portal container (can be removed later). I used the :where selector to keep the specificity to a minimum, because some of our users want to override the z-index.
In itwinui-react 1.48.0, the
Modal
component usesiui-dialog-wrapper
, which creates a stacking context and prevents children's z-index from being applied correctly. (regression)So I've added a z-index of 999 to the wrapper, which results in the correct behavior:
I was going to make this change in css and release another 0.X version but that would require more PRs and result in merge conflicts so I've just added a small style tag to the portal container (can be removed later). I used the
:where
selector to keep the specificity to a minimum, because some of our users want to override the z-index.