Make the email confirm component's fieldset label not visually hidden?

Created on 14 July 2025, 15 days ago

Problem/Motivation

When using the "Email confirm" component type, it doesn't seem to be possible to make the title (as fieldset legend) visible. At the top, under "Element settings" I've given it a title of "Your Email", set the field to required, and left the rest of the configuration to defaults. If I save the field and view the webform, the email confirm field is wrapped in a fieldset with its legend set to visually-hidden. There doesn't appear to be any way to make this legend visible except by overriding the visually-hidden class with CSS for this specific field.

The settings for "Title display" under "Form display" toward the bottom of the configuration form apply to the two email fields themselves, not to the fieldset. So changing "Title display" to "before" or "after" will move the fields' titles above or below the input, but has no effect on the fieldset legend.

I should note, this works the opposite of how the "Address" component works. For the Address component, changing the "Title display" under "Form display" causes its fieldset legend to become visible, as it too defaults to hidden. You can instead select where the address, city, zip, etc.'s titles appear for each input under "Address settings." This seems to be the way it should be done with email confirm as well, leaving the title display under Form settings to control the fieldset's legend.

✨ Feature request
Status

Active

Version

6.2

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States dalemoore

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024