mirror of
https://github.com/bitwarden/android.git
synced 2026-04-10 16:46:01 -05:00
🍒 PM-32607: Label headers for accesibility (#6578)
This commit is contained in:
@@ -18,6 +18,7 @@ import androidx.compose.ui.draw.clip
|
||||
import androidx.compose.ui.draw.rotate
|
||||
import androidx.compose.ui.graphics.Shape
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.semantics.heading
|
||||
import androidx.compose.ui.semantics.semantics
|
||||
import androidx.compose.ui.unit.dp
|
||||
import com.bitwarden.ui.platform.components.util.rememberVectorPainter
|
||||
@@ -60,7 +61,7 @@ fun BitwardenExpandingHeader(
|
||||
.minimumInteractiveComponentSize()
|
||||
.padding(horizontal = 16.dp)
|
||||
.padding(paddingValues = insets)
|
||||
.semantics(mergeDescendants = true) {},
|
||||
.semantics(mergeDescendants = true) { heading() },
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
) {
|
||||
Crossfade(
|
||||
|
||||
@@ -4,6 +4,8 @@ import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.semantics.heading
|
||||
import androidx.compose.ui.semantics.semantics
|
||||
import androidx.compose.ui.tooling.preview.Preview
|
||||
import com.bitwarden.ui.platform.theme.BitwardenTheme
|
||||
|
||||
@@ -25,7 +27,7 @@ fun BitwardenListHeaderText(
|
||||
text = "${label.uppercase()}$supportLabel",
|
||||
style = BitwardenTheme.typography.eyebrowMedium,
|
||||
color = BitwardenTheme.colorScheme.text.secondary,
|
||||
modifier = modifier,
|
||||
modifier = modifier.semantics { heading() },
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user