Skip to content

Conversation

@mannders00
Copy link
Contributor

Screenshot 2025-07-19 at 10 14 19 PM

Starting with simple fix for a first PR.

The unconfirmed transaction modal was being clipped under by the left sidebar.

Due to the document nested hierarchy, simply setting a high z-index wouldn't cause the modal to appear above the rest of the content. Removing the z-index on the sidebar component would have fixed this issue, but didn't change that to reduce the possibility of introducing edge cases in other parts of the UI.

The solution used here is to use react-dom createPortal to place the component in the root level of the document body. This correctly places the modal above the rest of the content, keeping code changes to this issue localized to the component itself.

…s and avoid stacking context issues by rendering the modal at the document root
Copy link
Member

@Maphikza Maphikza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was beautifully done and targeted Matt.

@Maphikza Maphikza merged commit ac08e00 into main Jul 20, 2025
2 checks passed
@ColbySerpa ColbySerpa deleted the ui-64 branch September 17, 2025 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants