fix: #3594925 Fix orphaned labels on webform preview

Proposed fix for the orphaned form label issue on the Webform preview/review display.

The current implementation builds the preview item as a Form API #type => item with #title. This can render form label markup even though the preview output is display-only and has no associated form control.

This MR changes the preview/display item wrapper from a form item to a container and renders the element title as non-form-label markup using div.webform-element-label.

Note: I do not currently have a local browser setup to manually verify the rendered preview page with axe, so this needs manual review/testing.

Merge request reports

Loading