Skip to content

Support native form validation #4319

@eirikbacker

Description

@eirikbacker

Description

As of now, the validation component has no behavior, so all native validation the browser can perform is lost. In Mattilsynet, we have added a data-validation="form" attribute to opt-in to native form validation. https://design.mattilsynet.no/?path=/story/designsystem-field--with-validation-form
I suggest we do not use data-validation="form", but rather novalidate to opt out, as this is the W3C standard.

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions