Skip to content

Commit c27e06e

Browse files
committed
Update accessibility descriptions in ReportIssue component
- Added `contentDescription` to the bug report icon using the `report_issue` string resource. - Added `contentDescription` to the arrow icon using the `open_in_browser` string resource. - Imported `open_github_link` and `open_in_browser` from resource package.
1 parent f229bea commit c27e06e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • feature/details/presentation/src/commonMain/kotlin/zed/rainxch/details/presentation/components/sections

feature/details/presentation/src/commonMain/kotlin/zed/rainxch/details/presentation/components/sections/ReportIssue.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ import androidx.compose.ui.platform.LocalUriHandler
2020
import androidx.compose.ui.unit.dp
2121
import org.jetbrains.compose.resources.stringResource
2222
import zed.rainxch.githubstore.core.presentation.res.Res
23+
import zed.rainxch.githubstore.core.presentation.res.open_github_link
24+
import zed.rainxch.githubstore.core.presentation.res.open_in_browser
2325
import zed.rainxch.githubstore.core.presentation.res.report_issue
2426

2527
fun LazyListScope.reportIssue(
@@ -44,7 +46,7 @@ fun LazyListScope.reportIssue(
4446
) {
4547
Icon(
4648
imageVector = Icons.Default.BugReport,
47-
contentDescription = null,
49+
contentDescription = stringResource(Res.string.report_issue),
4850
tint = MaterialTheme.colorScheme.onSurfaceVariant,
4951
modifier = Modifier.size(32.dp)
5052
)
@@ -58,7 +60,7 @@ fun LazyListScope.reportIssue(
5860

5961
Icon(
6062
imageVector = Icons.AutoMirrored.Filled.KeyboardArrowRight,
61-
contentDescription = null,
63+
contentDescription = stringResource(Res.string.open_in_browser),
6264
tint = MaterialTheme.colorScheme.onSurfaceVariant,
6365
modifier = Modifier.size(20.dp)
6466
)

0 commit comments

Comments
 (0)