Skip to content

Commit cee7c66

Browse files
Merge pull request #14415 from woocommerce/issue/woomob-952-input-on-the-add-shipping-screen-looks-off
Fix input background color on the shipping label screen
2 parents 714df37 + 232905d commit cee7c66

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

WooCommerce/src/main/kotlin/com/woocommerce/android/ui/orders/creation/shipping/OrderShippingScreen.kt

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import androidx.compose.runtime.remember
3030
import androidx.compose.ui.Alignment
3131
import androidx.compose.ui.Modifier
3232
import androidx.compose.ui.draw.alpha
33+
import androidx.compose.ui.graphics.Color
3334
import androidx.compose.ui.graphics.SolidColor
3435
import androidx.compose.ui.res.dimensionResource
3536
import androidx.compose.ui.res.painterResource
@@ -223,7 +224,11 @@ fun FieldEditValue(
223224
text: String,
224225
onValueChange: (String) -> Unit,
225226
modifier: Modifier = Modifier,
226-
colors: TextFieldColors = TextFieldDefaults.textFieldColors(),
227+
colors: TextFieldColors = TextFieldDefaults.textFieldColors(
228+
backgroundColor = Color.Transparent,
229+
focusedIndicatorColor = Color.Transparent,
230+
unfocusedIndicatorColor = Color.Transparent
231+
),
227232
interactionSource: MutableInteractionSource = remember { MutableInteractionSource() },
228233
) {
229234
BasicTextField(
@@ -252,7 +257,12 @@ fun FieldEditValue(
252257
},
253258
enabled = true,
254259
singleLine = true,
255-
visualTransformation = VisualTransformation.None
260+
visualTransformation = VisualTransformation.None,
261+
colors = TextFieldDefaults.textFieldColors(
262+
backgroundColor = Color.Transparent,
263+
focusedIndicatorColor = Color.Transparent,
264+
unfocusedIndicatorColor = Color.Transparent
265+
)
256266
)
257267
}
258268
)

0 commit comments

Comments
 (0)