AbsaOSS / AbsaOSS/cps-shared-ui

InputComponent - expand type beyond text/number/password

Open
#644 0 comments 0 reactions 0 assignees View on GitHub
enhancement library
Dominant language
TypeScript
Stars
9
Forks
6
Avg merge
23h 46m
Merged PRs (30d)
5

Description

`type` is currently limited to `'text' | 'number' | 'password'`:

https://github.com/AbsaOSS/cps-shared-ui/blob/fac3d6c60e5f052bdd48dbc3d7ca0db409246c63/projects/cps-ui-kit/src/lib/components/cps-input/cps-input.component.ts#L92

We should also allow `email`, `tel`, `url`, and `search` so consumers get the right mobile keyboard, autofill, and validation without dropping back to plain text.

Skipping types that already have (or deserve) their own component: `date`, `time`, `color`, `file`, `checkbox`, etc.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.