[Input] Allow customization of prefix-text and suffix-text width #8688
Labels
Application Prototype Lab - APL
Issues logged by Application Prototype Lab - APL team members.
Calcite (design)
Issues logged by Calcite designers.
calcite-components
Issues specific to the @esri/calcite-components package.
design
Issues that need design consultation prior to development.
design-tokens
Issues requiring design tokens.
enhancement
Issues tied to a new feature or request.
estimate - 2
Small fix or update, may require updates to tests.
impact - p3 - not time sensitive
User set priority impact status of p3 - not time sensitive
p - low
Issue is non core or affecting less that 10% of people using the library
Check existing issues
Description
The

prefix-text
andsuffix-text
functionalities of Input determine their width from the length of the provided string. This is expected, but in a situation where multiple Input are aligned, and the string lengths are different, it can cause visual misalignment.Acceptance Criteria
Css properties for

--calcite-input-prefix-text-width
and--calcite-input-suffix-text-width
are exposed to allow for this customization.Relevant Info
@SkyeSeitz @ashetland - We'll likely want to decide if we "start-align" or "end-align" the
suffix-text
here.prefix-text
seems safe to always "start-align". I suppose we could also decide this based on thealignment
property of Input, should we want to.We have #8154 to track general updates to this functionality, but these enhancements will be useful regardless of visual changes.
Which Component
Input and any Input-based components that accept these options.
Example Use Case
I have multiple Input stacked with varying
prefix-text
andsuffix-text
lengths. I'd like these to align.Priority impact
p4 - not time sensitive
Calcite package
Esri team
Calcite (design)
The text was updated successfully, but these errors were encountered: