Closed taylorvnoj closed 1 month ago
Latest commit: |
181c079
|
Status: | ✅ Deploy successful! |
Preview URL: | https://aa82c327.atlantis.pages.dev |
Branch Preview URL: | https://taylor-fix-formfield-alignme.atlantis.pages.dev |
Published Pre-release for 181c079a2017121e25bd9231d59be9edb34ff811 with versions:
- @jobber/components@5.40.1-TAYLORfix-181c079.1+181c079a
To install the new version(s) for Web run:
npm install @jobber/components@5.40.1-TAYLORfix-181c079.1+181c079a
I have a question about the problem the initial work was looking to resolve - how/when was that happening?
the clearable button shows up where I'd expect it to when it has no placeholder
and with a placeholder
I have a question about the problem the initial work was looking to resolve - how/when was that happening?
the clearable button shows up where I'd expect it to when it has no placeholder
and with a placeholder
On large size inputs: It was like this
and we noticed with the initial fix it was better aligned
But I didn't test multiline because multiline inputs can't have clearable
. BUT I didn't realize the entire context of the text input would also align center
Note for future: I think if we want to solve that clearable placement on large inputs, something along the lines of
position: absolute;
top: 50%;
tranform: translateY(-50%);
OR
wrap the clearable in a container, set that container to take up the full height of the input, and use flex to manipulate the position of the clearable button
Might be safer paths we take to get there. I think we have this working as expected in mobile so maybe we can take a peek at what we did there!
@chris-at-jobber I also thought the top: 50%
+ position: absolute
would fix it, which technically it does - but it breaks other combinations
https://github.com/GetJobber/atlantis/pull/1856#issuecomment-2062480661
if it's absolute, then it will overlap with other elements like the loading spinner or icons that can be in the same general area. which is why we made it relative.
we could try the container approach though, as long as that lets sibling elements position correctly. I do wonder what that's going to do to the available space for the actual text input though 🤔
Motivations
Reverting this align-items & transform change from this PR https://github.com/GetJobber/atlantis/pull/2052/files
Text in the container was also centering - very obvious on multiline text fields
We want this (multiline InputText)
Not this
And to make sure
clearable
looks as it did before:Changes
Added
Changed
Deprecated
Removed
Fixed
Security
Testing
Changes can be tested via Pre-release
In Atlantis we use Github's built in pull request reviews.