# UnifiedWriter v5.31.1 - Table Dialog Modal Frame Fix

## Purpose

v5.31.0 introduced the Model-first table editing foundation, but the Insert Table dialog could appear as raw jQuery UI markup when the Host/Demo page did not load a jQuery UI CSS theme. In that state, the close button text could overlap the dialog title and the form content could visually float over the document page.

## Fix

v5.31.1 applies the shared `unified-writer-modal-dialog` class to table insertion, table cell editing, table properties, link, command palette, prompt and confirm dialogs.

The package theme now owns the dialog frame, titlebar, content area, button pane and compact close button. This keeps dialog presentation independent from a Host-provided jQuery UI theme and preserves the iToolkits package rule that the embeddable Control should not require Host DOM/CSS assumptions for its own runtime UI.

## Design note

The dialog remains a jQuery UI dialog because UnifiedWriter still standardizes on jQuery 2.1.4 + jQuery UI, but the visual contract is package-owned. The table insertion dialog should be rendered as a proper modal panel, not as text layered on the document page.
