diff --git a/src-docs/src/views/inline_edit/inline_edit_example.js b/src-docs/src/views/inline_edit/inline_edit_example.js index 9bb5983e0bf..cb8f06645c8 100644 --- a/src-docs/src/views/inline_edit/inline_edit_example.js +++ b/src-docs/src/views/inline_edit/inline_edit_example.js @@ -155,9 +155,10 @@ export const InlineEditExample = { mode.

- Return a boolean from your onSave callback to - validate text after pressing Save. You can also return a boolean from a - promise. Validation happens before the user returns to read mode. + Return a boolean from your onSave callback to + validate text after pressing Save. You can also return a boolean + from a promise. Validation happens before the user returns to read + mode.

Returning false from onSave{' '} diff --git a/src/components/inline_edit/__snapshots__/inline_edit_form.test.tsx.snap b/src/components/inline_edit/__snapshots__/inline_edit_form.test.tsx.snap index 44d0882bc92..789434c3736 100644 --- a/src/components/inline_edit/__snapshots__/inline_edit_form.test.tsx.snap +++ b/src/components/inline_edit/__snapshots__/inline_edit_form.test.tsx.snap @@ -672,7 +672,7 @@ exports[`EuiInlineEditForm Read Mode readModeProps 1`] = ` hidden="" id="inlineEdit_generated-id" > - Click this button to edit this text inline. + Click to edit this text inline. `; @@ -706,7 +706,7 @@ exports[`EuiInlineEditForm Read Mode renders 1`] = ` hidden="" id="inlineEdit_generated-id" > - Click this button to edit this text inline. + Click to edit this text inline. `; @@ -740,7 +740,7 @@ exports[`EuiInlineEditForm Read Mode sizes 1`] = ` hidden="" id="inlineEdit_generated-id" > - Click this button to edit this text inline. + Click to edit this text inline. `; diff --git a/src/components/inline_edit/__snapshots__/inline_edit_text.test.tsx.snap b/src/components/inline_edit/__snapshots__/inline_edit_text.test.tsx.snap index c84ffa0c68a..88c3fcab517 100644 --- a/src/components/inline_edit/__snapshots__/inline_edit_text.test.tsx.snap +++ b/src/components/inline_edit/__snapshots__/inline_edit_text.test.tsx.snap @@ -33,7 +33,7 @@ exports[`EuiInlineEditText renders 1`] = ` hidden="" id="inlineEdit_generated-id" > - Click this button to edit this text inline. + Click to edit this text inline. `; @@ -71,7 +71,7 @@ exports[`EuiInlineEditText text sizes renders m 1`] = ` hidden="" id="inlineEdit_generated-id" > - Click this button to edit this text inline. + Click to edit this text inline. `; @@ -109,7 +109,7 @@ exports[`EuiInlineEditText text sizes renders s 1`] = ` hidden="" id="inlineEdit_generated-id" > - Click this button to edit this text inline. + Click to edit this text inline. `; @@ -147,7 +147,7 @@ exports[`EuiInlineEditText text sizes renders xs 1`] = ` hidden="" id="inlineEdit_generated-id" > - Click this button to edit this text inline. + Click to edit this text inline. `; diff --git a/src/components/inline_edit/__snapshots__/inline_edit_title.test.tsx.snap b/src/components/inline_edit/__snapshots__/inline_edit_title.test.tsx.snap index 58527fff8f8..aabe6e1a00e 100644 --- a/src/components/inline_edit/__snapshots__/inline_edit_title.test.tsx.snap +++ b/src/components/inline_edit/__snapshots__/inline_edit_title.test.tsx.snap @@ -33,7 +33,7 @@ exports[`EuiInlineEditTitle renders 1`] = ` hidden="" id="inlineEdit_generated-id" > - Click this button to edit this text inline. + Click to edit this text inline. `; @@ -71,7 +71,7 @@ exports[`EuiInlineEditTitle title sizes renders size l 1`] = ` hidden="" id="inlineEdit_generated-id" > - Click this button to edit this text inline. + Click to edit this text inline. `; @@ -109,7 +109,7 @@ exports[`EuiInlineEditTitle title sizes renders size m 1`] = ` hidden="" id="inlineEdit_generated-id" > - Click this button to edit this text inline. + Click to edit this text inline. `; @@ -147,7 +147,7 @@ exports[`EuiInlineEditTitle title sizes renders size s 1`] = ` hidden="" id="inlineEdit_generated-id" > - Click this button to edit this text inline. + Click to edit this text inline. `; @@ -185,7 +185,7 @@ exports[`EuiInlineEditTitle title sizes renders size xs 1`] = ` hidden="" id="inlineEdit_generated-id" > - Click this button to edit this text inline. + Click to edit this text inline. `; @@ -223,7 +223,7 @@ exports[`EuiInlineEditTitle title sizes renders size xxs 1`] = ` hidden="" id="inlineEdit_generated-id" > - Click this button to edit this text inline. + Click to edit this text inline. `; @@ -261,7 +261,7 @@ exports[`EuiInlineEditTitle title sizes renders size xxxs 1`] = ` hidden="" id="inlineEdit_generated-id" > - Click this button to edit this text inline. + Click to edit this text inline. `; diff --git a/upcoming_changelogs/6757.md b/upcoming_changelogs/6757.md new file mode 100644 index 00000000000..f2c3b6287b4 --- /dev/null +++ b/upcoming_changelogs/6757.md @@ -0,0 +1,2 @@ +- Added `EuiInlineEditText` and `EuiInlineEditTitle` components +