Merge pull request #573 from android/as/settings-touch-target

Increase touch target for radio button and text link in Settings page
pull/575/head
Angie Sasmita 2 years ago committed by GitHub
commit 2e6579b350
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -227,7 +227,7 @@ fun SettingsDialogThemeChooserRow(
role = Role.RadioButton, role = Role.RadioButton,
onClick = onClick, onClick = onClick,
) )
.padding(8.dp), .padding(12.dp),
verticalAlignment = Alignment.CenterVertically, verticalAlignment = Alignment.CenterVertically,
) { ) {
RadioButton( RadioButton(
@ -285,6 +285,7 @@ private fun TextLink(text: String, url: String) {
style = MaterialTheme.typography.labelLarge, style = MaterialTheme.typography.labelLarge,
color = MaterialTheme.colorScheme.primary, color = MaterialTheme.colorScheme.primary,
modifier = Modifier modifier = Modifier
.padding(vertical = 8.dp)
.clickable { .clickable {
ContextCompat.startActivity(context, launchResourceIntent, null) ContextCompat.startActivity(context, launchResourceIntent, null)
}, },

Loading…
Cancel
Save