fix: uppercase Å looked like Ă in input fields#4301
Conversation
🦋 Changeset detectedLatest commit: 905a4bb The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Preview deployments for this pull request: storybook - |
For discussion
EDIT: In the current iteration, any block padding (set with |
22adda4 to
0379c10
Compare
packages/css/src/input.css
Outdated
| field-sizing: content; | ||
| } | ||
| } | ||
| &:is([type='text'], [type='search'], [type='num'], [type='tel'], [type='url'], [type='password'], [type='month'], [type='week']) { |
There was a problem hiding this comment.
| &:is([type='text'], [type='search'], [type='num'], [type='tel'], [type='url'], [type='password'], [type='month'], [type='week']) { | |
| &:not(:read-only:not([readonly])) { |
...will target all inputs that is writable, but exclude radio, checkbox and select :)
There was a problem hiding this comment.
I may be misunderstanding what you mean here, but if I try this selector it also messes up type="radio", type="checkbox", type="color" if they are readonly
There was a problem hiding this comment.
arg, right! so, :not([type="radio"], [type="checkbox"], [type="color"], select) might be easier then? :/ input - doing too many things since 1993 🙈
There was a problem hiding this comment.
I think this is enough to not cause issues
:not([type='radio'], [type='checkbox'], [type='color'])
but it feels more correct with
:not([type='button'], [type='radio'], [type='checkbox'], [type='color'], [type='file'], [type='textarea'], select)
0379c10 to
ee17ccd
Compare
True, and e.g. when used with |
packages/css/src/input.css
Outdated
| field-sizing: content; | ||
| } | ||
| } | ||
| &:not([type='button'], [type='radio'], [type='checkbox'], [type='color'], [type='file'], [type='textarea'], select) { |
There was a problem hiding this comment.
| &:not([type='button'], [type='radio'], [type='checkbox'], [type='color'], [type='file'], [type='textarea'], select) { | |
| &:not([type='button'], [type='radio'], [type='checkbox'], [type='color'], [type='file'], textarea, select) { |
<3 :)
2e868d1 to
905a4bb
Compare



Summary
Fixes a bug in Input, Search, Suggestion, Textfield where uppercase Å was cut off at the top in Chrome and Safari, making it look like Ă
resolves #4293
Checks
pnpm changesetif relevant)