Skip to content

Extract text and search input from forms as component #16511

Closed as not planned
Closed as not planned
@gtsiolis

Description

@gtsiolis

Problem to solve

There are around more than 100 instances of text inputs or search inputs elements across the product, see <input> instances[1].

Currently, most input elements rely on the main button styles in index.css.

textarea,
input[type="text"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="password"],
select {
@apply block w-56 text-gray-600 dark:text-gray-400 bg-white dark:bg-gray-800 rounded-md border border-gray-300 dark:border-gray-500 focus:border-gray-400 dark:focus:border-gray-400 focus:ring-0;
}

It would be great to have some form elements as components to cover some of the different elements, states, variants, etc. of each element once across the product.

Elements: Checkbox, Date Picker, Filter, Search, Textarea, Text Input, etc.

Some basic designs already exist for the input and the checkbox elements.

Input Checkbox
Input Checkbox

See also relevant discussion (internal). Cc @selfcontained

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: dashboardmeta: staleThis issue/PR is stale and will be closed soonteam: webappIssue belongs to the WebApp teamtype: improvementImproves an existing feature or existing code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions