-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Conversation
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.
Code looks great! One question and one thing to note, which I commented. I still need to compare some things to Master visually before I can approve.
app:icon="@drawable/ic_tab_collection" | ||
app:iconGravity="textStart" | ||
app:iconPadding="8dp" | ||
app:fontFamily="@font/metropolis_medium" |
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.
You may want to verify with UX cases like this here in that this button was one of the few and only cases in which semi-bold was too bold and they requested medium instead. We have iterated on this a couple of times though, but may want to check with them to see whether they're happy with it in semi-bold or medium. In your implementation, you inherit the styling for the positive button from the neutral one, there may be a couple more cases like this as you go through headers etc. later where it may require a different font than from the default button.
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.
I will check with them before I get UX sign off! 😄
<style name="ThemeIndependentMaterialGreyButton" parent="Widget.MaterialComponents.Button.TextButton"> | ||
<!-- UI button styling --> | ||
<style name="NeutralButton" parent="Widget.MaterialComponents.Button.TextButton"> | ||
<item name="iconTint">@color/button_text_color</item> |
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.
Are you adding new styling for icons in buttons here?
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.
My understanding from UX is that the icons should match the text tint :) another thing I will confirm in the style guide before it's formalized.
<item name="android:textStyle">bold</item> | ||
<item name="android:textAllCaps">false</item> | ||
<item name="backgroundTint">@color/grey_button_color</item> | ||
<item name="android:textColor">@color/button_text_color</item> | ||
<item name="rippleColor">?secondaryText</item> | ||
<item name="android:letterSpacing">0</item> |
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.
Why did the letter spacing need to be specified here and/or is different from the other styles?
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.
The letters looked super spread out when I didn't change this. It's defined as "0" in several places throughout the app, and I think it should be a consistent thing. I will confirm with UX and file a follow up for addressing this, but I think 0 is fine for now?
import com.android.tools.lint.detector.api.Severity | ||
import com.android.tools.lint.detector.api.XmlContext | ||
import org.w3c.dom.Element | ||
|
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.
A KDOC here would be nice
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.
Added 😄
Codecov Report
@@ Coverage Diff @@
## master #9858 +/- ##
=========================================
Coverage 19.16% 19.17%
Complexity 521 521
=========================================
Files 337 337
Lines 13738 13738
Branches 1839 1839
=========================================
+ Hits 2633 2634 +1
Misses 10865 10865
+ Partials 240 239 -1
Continue to review full report at Codecov.
|
Note: this is the first step for implementing this. Ideally this will live in AC, but I want to get something merged in for now so we don't make the problem worse!
Pull Request checklist
After merge
To download an APK when reviewing a PR: