-
Notifications
You must be signed in to change notification settings - Fork 226
Replace OutlinedTextField by our TextField #4521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #4521 +/- ##
===========================================
+ Coverage 80.11% 80.18% +0.07%
===========================================
Files 2081 2081
Lines 55760 55736 -24
Branches 6829 6827 -2
===========================================
+ Hits 44673 44694 +21
+ Misses 8744 8696 -48
- Partials 2343 2346 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM in general, but I'd like to discuss the content padding values a bit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we change applyPaddingToContent
to be true
by default? I think it's more likely we want it enabled for most of our custom layouts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I agree, I believe the padding was reduced for the previous EditText (without box decoration)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe I can just remove this parameter applyPaddingToContent
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one should probably have some extra content padding for the text fields.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same for this other one.
@@ -24,4 +24,17 @@ class KonsistImportTest { | |||
it.name == "org.jetbrains.annotations.VisibleForTesting" | |||
} | |||
} | |||
|
|||
@Test | |||
fun `OutlinedTextField should not be used`() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes!
Content
Replace OutlinedTextField by our TextField
Motivation and context
Compound rules.
Follow up for #4512
Screenshots / GIFs
See recorded once
Tests
Tested devices
Checklist