{
};
const { datePicker = true, timePicker = true } = control;
return name ? (
-
+
{datePicker && (
}
id={`${name}date`}
name={`${name}date`}
onChange={onDateChange}
- aria-label="enter a date"
+ placeholder={`enter a date for ${name}`}
+ aria-autocomplete="none"
{...rest}
/>
)}
{timePicker && (
{
name={`${name}time`}
ref={timeInputRef as RefObject}
onChange={onTimeChange}
- aria-label="enter a time"
+ placeholder={`enter a time for ${name}`}
+ aria-autocomplete="none"
{...rest}
/>
)}
-
+
) : null;
};
diff --git a/ui/editors/src/DateEditor/__snapshots__/DateEditor.test.ts.snap b/ui/editors/src/DateEditor/__snapshots__/DateEditor.test.ts.snap
index 95aa51a7c..7a9595993 100644
--- a/ui/editors/src/DateEditor/__snapshots__/DateEditor.test.ts.snap
+++ b/ui/editors/src/DateEditor/__snapshots__/DateEditor.test.ts.snap
@@ -3,14 +3,15 @@
exports[`DateEditor onlyDatePicker snapshot 1`] = `
@@ -20,13 +21,14 @@ exports[`DateEditor onlyDatePicker snapshot 1`] = `
exports[`DateEditor onlyTimePicker snapshot 1`] = `
@@ -36,21 +38,23 @@ exports[`DateEditor onlyTimePicker snapshot 1`] = `
exports[`DateEditor overview snapshot 1`] = `
diff --git a/ui/editors/src/FilesEditor/FilesEditor.tsx b/ui/editors/src/FilesEditor/FilesEditor.tsx
index 2390073e5..5e4fbeba9 100644
--- a/ui/editors/src/FilesEditor/FilesEditor.tsx
+++ b/ui/editors/src/FilesEditor/FilesEditor.tsx
@@ -34,7 +34,7 @@ export const FilesEditor: PropertyEditor = ({ name, ...rest }) => {
}
}}
accept={control.accept}
- aria-label="select files"
+ placeholder="select files"
{...rest}
/>
);
diff --git a/ui/editors/src/FilesEditor/__snapshots__/FilesEditor.test.ts.snap b/ui/editors/src/FilesEditor/__snapshots__/FilesEditor.test.ts.snap
index 93b1f0126..733afc2c5 100644
--- a/ui/editors/src/FilesEditor/__snapshots__/FilesEditor.test.ts.snap
+++ b/ui/editors/src/FilesEditor/__snapshots__/FilesEditor.test.ts.snap
@@ -4,10 +4,10 @@ exports[`FilesEditor overview snapshot 1`] = `