@gcforms/tag-input 0.0.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/TagInput.tsx +2 -2
- package/src/i18n/en.json +1 -0
- package/src/i18n/fr.json +1 -0
package/package.json
CHANGED
package/src/TagInput.tsx
CHANGED
|
@@ -213,7 +213,7 @@ export const TagInput = ({
|
|
|
213
213
|
{label}
|
|
214
214
|
</label>
|
|
215
215
|
{description && <p className="gc-tag-input-description">{description}</p>}
|
|
216
|
-
<span id="input-instructions"
|
|
216
|
+
<span id="input-instructions" className="gc-visually-hidden">
|
|
217
217
|
{t("inputLabel", { tags: selectedTags.length.toString() })}
|
|
218
218
|
</span>
|
|
219
219
|
<div className="gc-tag-input">
|
|
@@ -224,7 +224,7 @@ export const TagInput = ({
|
|
|
224
224
|
className={`gc-tag ${selectedTagIndex === index ? "gc-selected-tag" : ""}`}
|
|
225
225
|
>
|
|
226
226
|
<div>{tag}</div>
|
|
227
|
-
<button type="button" onClick={() => handleRemoveTag(index)}>
|
|
227
|
+
<button type="button" onClick={() => handleRemoveTag(index)} aria-label={t("delete")}>
|
|
228
228
|
<CancelIcon />
|
|
229
229
|
</button>
|
|
230
230
|
</div>
|
package/src/i18n/en.json
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"announceTagAdded": "Tag \"{tag}\" added",
|
|
5
5
|
"announceTagRemoved": "Tag \"{tag}\" removed",
|
|
6
6
|
"announceTagSelected": "Tag \"{tag}\" selected",
|
|
7
|
+
"delete": "Delete",
|
|
7
8
|
"duplicateTag": "Tag already added",
|
|
8
9
|
"inputLabel": "{tags} tags. Use Enter, Tab, or a comma to create a tag. Use left and right arrow keys to navigate tags. Use Backspace or Delete to remove a tag.",
|
|
9
10
|
"maxTagsReached": "Maximum number of tags reached ({max})"
|
package/src/i18n/fr.json
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"announceTagAdded": "Balise \"{tag}\" ajoutée",
|
|
5
5
|
"announceTagRemoved": "Balise \"{tag}\" supprimée",
|
|
6
6
|
"announceTagSelected": "Tag \"{tag}\" sélectionnée",
|
|
7
|
+
"delete": "Supprimer",
|
|
7
8
|
"duplicateTag": "La balise a déjà été ajoutée",
|
|
8
9
|
"inputLabel": "Balises {tags}. Utilisez Entrée, la touche Tab ou une virgule pour créer une balise. Utilisez les touches fléchées gauche et droite pour naviguer dans les balises. Utilisez le retour en arrière ou Supprimer pour enlever une balise.",
|
|
9
10
|
"maxTagsReached": "Le nombre maximal de balises a été atteint ({max})"
|