Skip to content

Describe required fields that add TODO placeholder elements when omitted #5285

@d-koppenhagen

Description

@d-koppenhagen

When using form components (probably other too?), you can set an attribute like invalidMessage to define an error text presented to the user. If this property is not set, there is a DOM node added which contains:

<span class="db-infotext" data-semantic="critical" data-size="small" data-show-icon-leading="true">TODO: Add an invalidMessage</span>

Adding this kind of placeholder is not described somewhere and it should be more prominent for consumers that the related properties are required to set and that otherwise this placeholders are added.

It seems not to affect screenreaders since the text is set to display: none;, but nontheless it doesn't look good.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions