Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[Rally] Add comment explaining use of mergeDescendants
  • Loading branch information
JolandaVerhoef committed Feb 17, 2021
commit 2dd3282fea7fa93fb7f81d739bc9e139104cf4c7
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ private fun AlertItem(message: String) {
Row(
modifier = Modifier
.padding(RallyDefaultPadding)
// Regard the whole row as one semantics node. This way each row will receive focus as
// a whole and the focus bounds will be around the whole row content. The semantics
// properties of the descendants will be merged. If we'd use clearAndSetSemantics instead,
// we'd have to define the semantics properties explicitly.
.semantics(mergeDescendants = true) {},
horizontalArrangement = Arrangement.SpaceBetween
) {
Expand Down