[a11y] Improve accessibility of screen headers.
This commit is contained in:
parent
c2e357cbcd
commit
df9a3fe9c2
1 changed files with 2 additions and 4 deletions
|
|
@ -609,6 +609,7 @@ private fun JoinRoomTopBar(
|
|||
val roundedCornerShape = RoundedCornerShape(8.dp)
|
||||
val titleModifier = Modifier
|
||||
.clip(roundedCornerShape)
|
||||
.semantics { heading() }
|
||||
if (contentState.name != null) {
|
||||
Row(
|
||||
modifier = titleModifier,
|
||||
|
|
@ -621,10 +622,7 @@ private fun JoinRoomTopBar(
|
|||
)
|
||||
Text(
|
||||
modifier = Modifier
|
||||
.padding(horizontal = 8.dp)
|
||||
.semantics {
|
||||
heading()
|
||||
},
|
||||
.padding(horizontal = 8.dp),
|
||||
text = contentState.name,
|
||||
style = ElementTheme.typography.fontBodyLgMedium,
|
||||
maxLines = 1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue