carbon-design-system / carbon

A design system built by IBM
https://www.carbondesignsystem.com
Apache License 2.0
7.83k stars 1.81k forks source link

[Feature Request]: Adding prefix or suffix to text inputs #15572

Open cate-wilcox opened 9 months ago

cate-wilcox commented 9 months ago

The problem

Today there is no way to specify a non-editable prefix or suffix for inputs like currency, scores, units of measure, etc., which are frequently used in forms. This often means either leaving that information out, adding it as additional information to the label, or including it as part of the editable input.

image

The solution

Allow for the ability to set prefixes or suffixes to inputs if required.

image image

Examples

Design system examples

Application/PAL

watsonx Orchestrate

Business priority

Medium Priority = upcoming release but is not pressing

Available extra resources

Possible design support if needed. Unsure about dev support atm.

Code of Conduct

github-actions[bot] commented 9 months ago

Thank you for submitting a feature request. Your proposal is open and will soon be triaged by the Carbon team.

If your proposal is accepted and the Carbon team has bandwidth they will take on the issue, or else request you or other volunteers from the community to work on this issue.

sstrubberg commented 9 months ago

Concerns around padding with the suffix. How to programmatically capture the whole field. Best approaches around accessibility.

Lots of different teams asking about this enhancement.