Skip to content

fix(piral-modals): Modals weren’t stacking correctly on top of each other.#771

Closed
pranav-hsg wants to merge 1 commit intosmapiot:developfrom
pranav-hsg:hotfix/piral-modal-stack-order
Closed

fix(piral-modals): Modals weren’t stacking correctly on top of each other.#771
pranav-hsg wants to merge 1 commit intosmapiot:developfrom
pranav-hsg:hotfix/piral-modal-stack-order

Conversation

@pranav-hsg
Copy link
Contributor

Fixed issue where the most recently opened modal was not appearing on top and was instead appearing behind older modals.

Before :

ScreenRecording2025-08-11at6 41 12PM-ezgif com-video-to-gif-converter
After :

Screen Recording 2025-08-11 at 6 54 27 PM-2

@CLAassistant
Copy link

CLAassistant commented Aug 11, 2025

CLA assistant check
All committers have signed the CLA.

@github-actions
Copy link


Error: Error while trying to collect info before merging hotfix/piral-modal-stack-order into develop.

Error: Command failed: npx lerna run build:release
lerna notice cli v8.1.9
lerna info ci enabled

    at genericNodeError (node:internal/errors:984:15)
    at wrappedFn (node:internal/errors:538:14)
    at ChildProcess.exithandler (node:child_process:422:12)
    at ChildProcess.emit (node:events:518:28)
    at maybeClose (node:internal/child_process:1105:16)
    at ChildProcess._handle.onexit (node:internal/child_process:305:5)

Generated by @jsenv/file-size-impact during check-bundle-size#16882881443 on 309340b

ctx.dispatch((state) => ({
...state,
modals: prependItem(state.modals, dialog),
modals: appendItem(state.modals, dialog),
Copy link
Contributor

Choose a reason for hiding this comment

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

To me that seems like a breaking change - right now the most recent is moved to the left, i.e., if the first (0 index) is picked this one is always in the front.

The actual representation is not done by piral-modals so I'd say this is rather an issue of documentation / implementation of the representation.

@FlorianRappl
Copy link
Contributor

FlorianRappl commented Aug 11, 2025

Superseded by #773

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