[a11y] Improve accessibility of screen headers.
This commit is contained in:
parent
5b2970f789
commit
c2e357cbcd
1 changed files with 5 additions and 5 deletions
|
|
@ -354,7 +354,8 @@ private fun EmptySpaceView(
|
|||
title = stringResource(R.string.screen_space_empty_state_title),
|
||||
subTitle = null,
|
||||
iconStyle = BigIcon.Style.Default(vectorIcon = CompoundIcons.Room(), usePrimaryTint = true),
|
||||
modifier = Modifier.fillMaxWidth()
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.padding(top = 40.dp, start = 24.dp, end = 24.dp, bottom = 24.dp),
|
||||
)
|
||||
ButtonColumnMolecule(
|
||||
|
|
@ -425,6 +426,7 @@ private fun SpaceViewTopBar(
|
|||
modifier = Modifier
|
||||
.clip(roundedCornerShape)
|
||||
.clickable(enabled = canAccessSpaceSettings, onClick = onSettingsClick)
|
||||
.semantics { heading() }
|
||||
)
|
||||
},
|
||||
actions = {
|
||||
|
|
@ -532,6 +534,7 @@ private fun ManageModeTopBar(
|
|||
Text(
|
||||
text = pluralStringResource(CommonPlurals.common_selected_count, selectedCount, selectedCount),
|
||||
style = ElementTheme.typography.fontBodyLgMedium,
|
||||
modifier = Modifier.semantics { heading() },
|
||||
)
|
||||
},
|
||||
actions = {
|
||||
|
|
@ -585,10 +588,7 @@ private fun SpaceAvatarAndNameRow(
|
|||
)
|
||||
Text(
|
||||
modifier = Modifier
|
||||
.padding(horizontal = 8.dp)
|
||||
.semantics {
|
||||
heading()
|
||||
},
|
||||
.padding(horizontal = 8.dp),
|
||||
text = name ?: stringResource(CommonStrings.common_no_space_name),
|
||||
style = ElementTheme.typography.fontBodyLgMedium,
|
||||
fontStyle = FontStyle.Italic.takeIf { name == null },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue