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