mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-14 23:18:43 +00:00
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:
committed by
Michelle Tang
parent
4dede65e32
commit
623d2f2659
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user