From d51768d7a7ec13a7e024efa9896807444b447702 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Date: Wed, 17 May 2023 10:00:59 +0200 Subject: [PATCH] Remove placeholder text color when `Cell` component is disabled --- packages/components/src/mobile/bottom-sheet/cell.native.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/components/src/mobile/bottom-sheet/cell.native.js b/packages/components/src/mobile/bottom-sheet/cell.native.js index a23d9f30f10f3..a7997818574b7 100644 --- a/packages/components/src/mobile/bottom-sheet/cell.native.js +++ b/packages/components/src/mobile/bottom-sheet/cell.native.js @@ -229,6 +229,7 @@ class BottomSheetCell extends Component { ...valueStyle, ...styleRTL, }; + const placeholderTextColor = disabled ? undefined : '#87a6bc'; const textStyle = { ...( disabled && styles.cellDisabled ), ...cellValueStyle, @@ -247,7 +248,7 @@ class BottomSheetCell extends Component { style={ textInputStyle } value={ value } placeholder={ valuePlaceholder } - placeholderTextColor={ '#87a6bc' } + placeholderTextColor={ placeholderTextColor } onChangeText={ onChangeValue } editable={ isValueEditable } pointerEvents={