NEURALNG

ACCESSIBILITY

A real modal dialog

ConfirmDialog composes Neural Dialog rather than simulating modal behavior with generic div elements.

Native top layer

The underlying native dialog enters the browser top layer, blocks background interaction and remains stable during page scrolling.

Name and description

The generated heading and message IDs wire aria-labelledby and aria-describedby automatically.

Focus policy and restoration

defaultFocus selects accept, reject or no action. On close, focus returns to the element that opened the native dialog.

Keyboard

Tab remains within the modal. Shift+Tab reverses focus order. Escape follows the effective request or host policy.

Busy actions

Processing disables both choices, prevents duplicate invocation and exposes busy state on the accepting action.

Explicit dismissal policy

Close button, Escape and backdrop dismissal are independent. Destructive confirmations default to no close button and a non-dismissible backdrop.