ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

[Feature Request]: Enhancing Validation for Form Components

Open nnaydenow opened this issue 10 months ago • 2 comments

Feature Request Description

Native HTML form elements provide detailed information about the validity of specific fields. This depends on how they are configured using attributes like required, min, max, maxlength, and others.

MDN: HTMLObjectElement Validity MDN: ValidityState API This built-in validity helps improve how form elements function, how they are styled (e.g., using :invalid or :valid selectors), and how they provide feedback about why a component may be invalid.

Proposed Solution

By integrating the ElementsInternal API into ui5-webcomponents, the form web components can define their validity based on their specific properties and attributes.

Currently, only the required property is reflected in the validity object of the custom element.

Proposed Alternatives

No response

Organization

No response

Additional Context

No response

Priority

Low

Privacy Policy

  • [x] I’m not disclosing any internal or sensitive information.

nnaydenow avatar Jan 07 '25 14:01 nnaydenow