File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
compose/snippets/src/main/java/com/example/compose/snippets/accessibility Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ import androidx.compose.ui.semantics.collectionInfo
7575import androidx.compose.ui.semantics.collectionItemInfo
7676import androidx.compose.ui.semantics.customActions
7777import androidx.compose.ui.semantics.heading
78+ import androidx.compose.ui.semantics.hideFromAccessibility
7879import androidx.compose.ui.semantics.isTraversalGroup
7980import androidx.compose.ui.semantics.liveRegion
8081import androidx.compose.ui.semantics.onClick
@@ -777,7 +778,7 @@ fun WatermarkExample(
777778 color = Color .Gray .copy(alpha = 0.5f ),
778779 modifier = Modifier
779780 .align(Alignment .BottomEnd )
780- // .semantics { hideFromAccessibility() } TODO when we update Compose to 1.8
781+ .semantics { hideFromAccessibility() }
781782 )
782783 }
783784}
@@ -787,7 +788,7 @@ fun DecorativeExample() {
787788 Text (
788789 modifier =
789790 Modifier .semantics {
790- // hideFromAccessibility() TODO when we update Compose to 1.8
791+ hideFromAccessibility()
791792 },
792793 text = " A dot character that is used to decoratively separate information, like •"
793794 )
You can’t perform that action at this time.
0 commit comments