Skip to content

Issue/woomob 271 woo pos design updates icon text color chevron #14009

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

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -223,15 +223,13 @@ fun WooPosProductCard(

Spacer(modifier = Modifier.width(WooPosSpacing.Medium.value))

Box(modifier = Modifier.weight(1f)) {
ProductInfo(item)
}
ProductInfo(modifier = Modifier.weight(1f), item = item)

if (item is Product.Variable) {
Image(
modifier = Modifier
.size(32.dp)
.padding(end = WooPosSpacing.XLarge.value),
.padding(end = WooPosSpacing.XLarge.value)
.size(32.dp),
imageVector = ImageVector.vectorResource(id = R.drawable.ic_chevron),
contentDescription = null,
colorFilter = ColorFilter.tint(WooPosTheme.colors.onSurfaceVariantHighest),
Expand All @@ -242,9 +240,9 @@ fun WooPosProductCard(
}

@Composable
private fun ProductInfo(item: Product) {
private fun ProductInfo(modifier: Modifier, item: Product) {
Column(
modifier = Modifier
modifier = modifier
.fillMaxHeight()
.padding(
top = WooPosSpacing.Medium.value,
Expand Down
10 changes: 5 additions & 5 deletions WooCommerce/src/main/res/drawable/ic_chevron.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="14dp"
android:height="22dp"
android:viewportWidth="14"
android:viewportHeight="22">
android:width="15dp"
android:height="28dp"
android:viewportWidth="15"
android:viewportHeight="28">
<path
android:pathData="M13.211,10.539C13.211,10.773 13.164,10.996 13.07,11.207C12.984,11.41 12.844,11.606 12.648,11.793L3.637,20.617C3.332,20.914 2.961,21.063 2.523,21.063C2.242,21.063 1.98,20.992 1.738,20.852C1.496,20.711 1.301,20.523 1.152,20.289C1.012,20.055 0.941,19.789 0.941,19.492C0.941,19.063 1.105,18.68 1.434,18.344L9.461,10.539L1.434,2.734C1.105,2.406 0.941,2.023 0.941,1.586C0.941,1.297 1.012,1.035 1.152,0.801C1.301,0.559 1.496,0.367 1.738,0.227C1.98,0.086 2.242,0.016 2.523,0.016C2.961,0.016 3.332,0.164 3.637,0.461L12.648,9.285C12.836,9.473 12.977,9.668 13.07,9.871C13.164,10.074 13.211,10.297 13.211,10.539Z"
android:pathData="M11.3,13.922L1.067,3.689C0.741,3.363 0.574,2.963 0.567,2.489C0.559,2.015 0.719,1.607 1.044,1.267C1.385,0.941 1.793,0.778 2.267,0.778C2.741,0.778 3.148,0.941 3.489,1.267L14.178,11.956C14.459,12.237 14.665,12.55 14.794,12.894C14.924,13.239 14.989,13.582 14.989,13.922C14.989,14.278 14.924,14.628 14.794,14.972C14.665,15.317 14.459,15.623 14.178,15.889L3.467,26.6C3.126,26.941 2.722,27.111 2.256,27.111C1.789,27.111 1.385,26.941 1.044,26.6C0.719,26.26 0.552,25.856 0.544,25.389C0.537,24.923 0.704,24.519 1.044,24.178L11.3,13.922Z"
android:fillColor="#FFFFFF"/>
</vector>
Loading