Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

Commit

Permalink
Hide PostCardProfilePicture from talkback
Browse files Browse the repository at this point in the history
  • Loading branch information
dluvian committed Feb 11, 2024
1 parent 27cbfc5 commit 11bb416
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.width
import androidx.compose.runtime.Composable
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clipToBounds
import androidx.compose.ui.draw.drawBehind
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.drawscope.DrawScope
import androidx.compose.ui.semantics.invisibleToUser
import androidx.compose.ui.semantics.semantics
import com.dluvian.nozzle.model.PostWithMeta
import com.dluvian.nozzle.model.ThreadPosition
import com.dluvian.nozzle.model.TrustType
Expand All @@ -29,7 +32,7 @@ import com.dluvian.nozzle.ui.theme.sizing
import com.dluvian.nozzle.ui.theme.spacing


@OptIn(ExperimentalFoundationApi::class)
@OptIn(ExperimentalFoundationApi::class, ExperimentalComposeUiApi::class)
@Composable
fun PostCard(
post: PostWithMeta,
Expand Down Expand Up @@ -96,7 +99,9 @@ fun PostCard(
.clipToBounds()
) {
PostCardProfilePicture(
modifier = Modifier.size(sizing.profilePicture),
modifier = Modifier
.size(sizing.profilePicture)
.semantics { this.invisibleToUser() },
pubkey = post.pubkey,
picture = post.picture,
showProfilePicture = showProfilePicture,
Expand Down

0 comments on commit 11bb416

Please sign in to comment.