File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
ui/src/main/kotlin/com/bitwarden/ui/platform/components/header Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import androidx.compose.ui.draw.clip
1818import androidx.compose.ui.draw.rotate
1919import androidx.compose.ui.graphics.Shape
2020import androidx.compose.ui.res.stringResource
21+ import androidx.compose.ui.semantics.heading
2122import androidx.compose.ui.semantics.semantics
2223import androidx.compose.ui.unit.dp
2324import com.bitwarden.ui.platform.components.util.rememberVectorPainter
@@ -60,7 +61,7 @@ fun BitwardenExpandingHeader(
6061 .minimumInteractiveComponentSize()
6162 .padding(horizontal = 16 .dp)
6263 .padding(paddingValues = insets)
63- .semantics(mergeDescendants = true ) {},
64+ .semantics(mergeDescendants = true ) { heading() },
6465 verticalAlignment = Alignment .CenterVertically ,
6566 ) {
6667 Crossfade (
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ import androidx.compose.foundation.layout.Column
44import androidx.compose.material3.Text
55import androidx.compose.runtime.Composable
66import androidx.compose.ui.Modifier
7+ import androidx.compose.ui.semantics.heading
8+ import androidx.compose.ui.semantics.semantics
79import androidx.compose.ui.tooling.preview.Preview
810import com.bitwarden.ui.platform.theme.BitwardenTheme
911
@@ -25,7 +27,7 @@ fun BitwardenListHeaderText(
2527 text = " ${label.uppercase()}$supportLabel " ,
2628 style = BitwardenTheme .typography.eyebrowMedium,
2729 color = BitwardenTheme .colorScheme.text.secondary,
28- modifier = modifier,
30+ modifier = modifier.semantics { heading() } ,
2931 )
3032}
3133
You can’t perform that action at this time.
0 commit comments