Skip to content

Commit 4a9f267

Browse files
authored
HMA-9778-textview-accessibility-invalid-input (#209)
Co-authored-by: rajesh-1394 <177030043+rajesh-1394@users.noreply.github.com>
1 parent ef958f8 commit 4a9f267

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

components-compose/src/main/java/uk/gov/hmrc/components/compose/molecule/input/CurrencyInputView.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ fun CurrencyInputView(
3939
errorContentDescription: String? = null,
4040
singleLine: Boolean = true,
4141
enableDecimal: Boolean = true,
42-
maxChars: Int? = null
42+
maxChars: Int? = null,
43+
isCustomErrorInputHandle: Boolean = false
4344
) {
4445
// pattern matches a decimal number
4546
val decimalPattern = remember { Regex("^([0-9]*)(\\.?)([0-9]*)$") }
@@ -74,7 +75,8 @@ fun CurrencyInputView(
7475
singleLine = singleLine,
7576
keyboardOptions = KeyboardOptions(
7677
keyboardType = if (enableDecimal) KeyboardType.Decimal else KeyboardType.Number
77-
)
78+
),
79+
isCustomErrorInputHandle = isCustomErrorInputHandle
7880
)
7981
}
8082

@@ -86,7 +88,7 @@ fun CurrencyInputViewPreview() {
8688
onInputValueChange = { },
8789
labelText = "Label",
8890
hintText = "Hint",
89-
placeholderText = "Text",
91+
placeholderText = "Text"
9092
)
9193
}
9294
}

0 commit comments

Comments
 (0)