Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Textfield): Disable word-wrapping inside prefix and suffix (#2177)
## Description We encountered an [issue](Altinn/altinn-studio#13167) in Altinn Studio when we added prefix and suffix to the Textfield component. When a text inside a prefix/suffix contains a hyphen, a line break is created and the container overflows vertically. The issue can be solved by adding `white-space: nowrap` to the prefix and suffix classes. ## Screenshots This is from testing in local Storybook. **Before**: ![prefix-before](https://github.com/user-attachments/assets/06f7e613-9552-4e94-b28f-78520193f11d) **After**: ![prefix-after](https://github.com/user-attachments/assets/f96aec9f-71e7-4df5-9ee1-24fbfe00c4d2)
- Loading branch information