Add vertical scrolling to Change Number screen for accessibility.

The Change Number intro screen was not scrollable, making the Continue
button inaccessible when users have larger font or display sizes
configured on their device. Added verticalScroll modifier to the Column
to allow scrolling when content overflows.
This commit is contained in:
Greyson Parrelli
2026-01-10 09:16:35 -05:00
committed by Michelle Tang
parent 4dede65e32
commit 623d2f2659

View File

@@ -11,6 +11,8 @@ import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
@@ -61,11 +63,13 @@ fun ChangeNumberScreen(
navigationIcon = ImageVector.vectorResource(id = R.drawable.ic_arrow_left_24),
navigationContentDescription = stringResource(id = R.string.Material3SearchToolbar__close)
) {
val scrollState = rememberScrollState()
Column(
horizontalAlignment = Alignment.CenterHorizontally,
modifier = Modifier
.fillMaxSize()
.padding(it)
.verticalScroll(scrollState)
.padding(horizontal = 32.dp)
) {
Image(