adobe / adobe/spectrum-web-components

[Bug]: [Textfield] [Quiet] Space between text and the icon is not the same as default Textfield

Open
#4,874 1 comment 0 reactions 0 assignees View on GitHub
Browser: Edge (Legacy) bug Component:Textfield SEV missing
Dominant language
TypeScript
Stars
1.5k
Forks
262
Avg merge
3d 10h
Merged PRs (30d)
68

Description

### Code of conduct

- [X] I agree to follow this project's code of conduct.

### Impacted component(s)

Textfield

### Expected behavior

In quiet variant, the space between text and valid/invalid icon should be same as the default variant
Screenshot 2024-10-29 at 3 25 50 PM

### Actual behavior

In quiet variant, there is not space between text and valid/invalid icon
Screenshot 2024-10-29 at 3 21 35 PM
Screenshot 2024-10-29 at 3 21 02 PM

### Screenshots

_No response_

### What browsers are you seeing the problem in?

Microsoft Edge

### How can we reproduce this issue?

1. Go to https://studio.webcomponents.dev/edit/collection/fO75441E1Q5ZlI0e9pgq/EcE2Yrwz0MDIGkCzbyvl/src/index.ts?p=stories
2. Open Textfield story
3. Overfill the Textfield default variant and check the gap between the truncated text and the invalid/valid icon.
4. Do the same for Textfield quiet variant. You will need to add `invalid` and `valid` attributes to test this.

### Sample code or abstract reproduction which illustrates the problem

_No response_

### Severity

None

### Logs taken while reproducing problem

_No response_

Contributor guide

Open the contributing guide

Research direction

Open the linked Web Components Studio reproduction and inspect the Textfield story, comparing default and quiet variants with valid and invalid attributes. Trace the Textfield implementation from that story to locate the styling responsible for the icon gap. Done means the quiet variant has the same space between truncated text and the valid or invalid icon as the default variant.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.