Skip to content

Commit c0c1a4a

Browse files
committed
fixup! Add text when the user is dragging files over FileInputField
1 parent 72bbc3e commit c0c1a4a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/components/FileInputField/FileInputField.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ export const FileInputField = React.forwardRef((props, ref) => {
199199
>
200200
<Text lines={1}>
201201
{isDragging && (
202-
<span className={styles.dropHereText}>
203-
{translations.FileInputField.dropHere}
202+
<span className={styles.dropFilesHereText}>
203+
{translations.FileInputField.dropFilesHere}
204204
</span>
205205
)}
206206
{!isDragging && !selectedFileNames.length && (

src/components/FileInputField/FileInputField.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
--rui-local-border-color: #{settings.$drop-zone-active-border-color};
6565
}
6666

67-
.dropHereText {
67+
.dropFilesHereText {
6868
color: var(--rui-local-link-color, var(--rui-color-text-link));
6969
}
7070

src/translations/en.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
FileInputField: {
66
browse: 'Browse',
77
drop: 'or drop file here',
8-
dropHere: 'Drop here!',
8+
dropFilesHere: 'Drop file here',
99
filesSelected: 'files selected',
1010
},
1111
ModalCloseButton: {

0 commit comments

Comments
 (0)