Skip to content

Commit

Permalink
Add content description
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawa committed Sep 25, 2023
1 parent 00d2700 commit 32a1e06
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ private fun LoginIcon(state: LoginState, modifier: Modifier = Modifier) {
if (state.loginError != null) {
Image(
painter = painterResource(id = R.drawable.icon_fail),
contentDescription = null,
contentDescription = stringResource(id = R.string.login_fail_title),
contentScale = ContentScale.Inside
)
} else {
Expand All @@ -274,7 +274,7 @@ private fun LoginIcon(state: LoginState, modifier: Modifier = Modifier) {
Image(
modifier = Modifier.offset(-Dimens.smallPadding, -Dimens.smallPadding),
painter = painterResource(id = R.drawable.icon_success),
contentDescription = null,
contentDescription = stringResource(id = R.string.logged_in_title),
)
}
}
Expand Down

0 comments on commit 32a1e06

Please sign in to comment.