Skip to content

Commit

Permalink
feat(EmailTextField): Add content description to the chip delete button
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianDevel committed Dec 17, 2024
1 parent 84d93a2 commit f8db912
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.focus.*
import androidx.compose.ui.input.key.*
import androidx.compose.ui.platform.LocalFocusManager
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.tooling.preview.datasource.LoremIpsum
import com.infomaniak.swisstransfer.R
import com.infomaniak.swisstransfer.ui.images.AppImages
import com.infomaniak.swisstransfer.ui.images.icons.CrossThick
import com.infomaniak.swisstransfer.ui.theme.CustomShapes
Expand Down Expand Up @@ -127,7 +129,7 @@ fun SwissTransferInputChip(
Icon(
modifier = Modifier.size(Dimens.MicroIconSize),
imageVector = AppImages.AppIcons.CrossThick,
contentDescription = "Localized description", // TODO
contentDescription = stringResource(R.string.contentDescriptionButtonRemoveRecipient, text),
)
}
},
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<string name="contentDescriptionButtonClose">Schliessen</string>
<string name="contentDescriptionButtonHidePassword">Passwort verbergen</string>
<string name="contentDescriptionButtonRemove">Datei entfernen</string>
<string name="contentDescriptionButtonRemoveRecipient">%s entfernen</string>
<string name="contentDescriptionButtonShowPassword">Passwort anzeigen</string>
<string name="contentDescriptionCreateNewTransferButton">Neuer Transfer</string>
<string name="downloadedTransferLabel">Heruntergeladene Übertragung: %d/%d</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<string name="contentDescriptionButtonClose">Cerrar</string>
<string name="contentDescriptionButtonHidePassword">Ocultar contraseña</string>
<string name="contentDescriptionButtonRemove">Eliminar archivo</string>
<string name="contentDescriptionButtonRemoveRecipient">Suprimir %s</string>
<string name="contentDescriptionButtonShowPassword">Mostrar contraseña</string>
<string name="contentDescriptionCreateNewTransferButton">Nueva transferencia</string>
<string name="downloadedTransferLabel">Transferencia descargada: %d/%d</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<string name="contentDescriptionButtonClose">Fermer</string>
<string name="contentDescriptionButtonHidePassword">Cacher le mot de passe</string>
<string name="contentDescriptionButtonRemove">Supprimer le fichier</string>
<string name="contentDescriptionButtonRemoveRecipient">Supprimer %s</string>
<string name="contentDescriptionButtonShowPassword">Afficher le mot de passe</string>
<string name="contentDescriptionCreateNewTransferButton">Nouveau transfert</string>
<string name="downloadedTransferLabel">Transfert téléchargé : %d/%d\u0020</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-it/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<string name="contentDescriptionButtonClose">Chiudi</string>
<string name="contentDescriptionButtonHidePassword">Nascondere la password</string>
<string name="contentDescriptionButtonRemove">Rimuovi il file</string>
<string name="contentDescriptionButtonRemoveRecipient">Rimuove %s</string>
<string name="contentDescriptionButtonShowPassword">Mostra password</string>
<string name="contentDescriptionCreateNewTransferButton">Nuovo trasferimento</string>
<string name="downloadedTransferLabel">Trasferimento scaricato: %d/%d</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<string name="contentDescriptionButtonClose">Close</string>
<string name="contentDescriptionButtonHidePassword">Hide password</string>
<string name="contentDescriptionButtonRemove">Remove file</string>
<string name="contentDescriptionButtonRemoveRecipient">Remove %s</string>
<string name="contentDescriptionButtonShowPassword">Show password</string>
<string name="contentDescriptionCreateNewTransferButton">New transfer</string>
<string name="downloadedTransferLabel">Downloaded transfer: %d/%d\u0020</string>
Expand Down

0 comments on commit f8db912

Please sign in to comment.