diff --git a/src/data-workspace/final-form-wrapper.js b/src/data-workspace/final-form-wrapper.js index 7d3c549ab..81df658d9 100644 --- a/src/data-workspace/final-form-wrapper.js +++ b/src/data-workspace/final-form-wrapper.js @@ -31,7 +31,6 @@ export function FinalFormWrapper({ children, dataValueSet }) { // TODO: Reinitialize form `onSuccess` of dataValueSets query // See https://dhis2.atlassian.net/browse/TECH-1357 const [initialValues] = useState(() => createInitialValues(dataValueSet)) - return (
-
+
-
+
+
-
+
diff --git a/src/data-workspace/inputs/datetime-input.test.js b/src/data-workspace/inputs/datetime-input.test.js index d4f4167e9..6b21abc47 100644 --- a/src/data-workspace/inputs/datetime-input.test.js +++ b/src/data-workspace/inputs/datetime-input.test.js @@ -92,7 +92,7 @@ describe('date input field', () => { ) - const calendarInputLabel = getByText('Pick a date and time') + const calendarInputLabel = getByText('Pick a date') const calendarInput = getByRole('textbox') let calendar = queryByTestId('calendar') @@ -150,7 +150,7 @@ describe('date input field', () => { // check that mutate function was not called expect(mutate.mock.calls).toHaveLength(0) - const calendarInputLabel = getByText('Pick a date and time') + const calendarInputLabel = getByText('Pick a date') const calendarInput = getByRole('textbox') let calendar = queryByTestId('calendar') @@ -251,7 +251,7 @@ describe('date input field', () => { ) - const calendarInputLabel = getByText('Pick a date and time') + const calendarInputLabel = getByText('Pick a date') const calendarInput = getByRole('textbox') let calendar = queryByTestId('calendar') @@ -300,7 +300,7 @@ describe('date input field', () => { ) - const calendarInputLabel = getByText('Pick a date and time') + const calendarInputLabel = getByText('Pick a date') const calendarInput = getByRole('textbox') let calendar = queryByTestId('calendar') diff --git a/src/data-workspace/inputs/inputs.module.css b/src/data-workspace/inputs/inputs.module.css index b75348188..93309d8c9 100644 --- a/src/data-workspace/inputs/inputs.module.css +++ b/src/data-workspace/inputs/inputs.module.css @@ -110,6 +110,12 @@ margin-inline: var(--spacers-dp4); } -.dateTimeInput div { - margin-block: var(--spacers-dp4); -} \ No newline at end of file +.dateTimeInput { + padding-block: var(--spacers-dp4); +} + +.timeLabel { + display: block; + font-size: 14px; + margin-block-end: var(--spacers-dp4); +}