Page Header: Support inline edit
For the page header component, need to support optional inline editing of all fields. Note: the save interaction for editing the name/title is slightly different than other fields.
Name/Title
- Default state of the field would be read only, with an edit icon next to it
- Clicking on the field, it becomes editable and the icon changes to undo
- Clicking anywhere outside of the field (or enter key) would save value and revert the field back to readonly
- Clicking the undo action would discard the value and revert the field back to readonly with the original value
Other fields
- Default state of the field would be read only, with an edit icon next to it
- Clicking on the field, it becomes editable
- The only way to exit the edit popover is to click "cancel/done"
https://salesforce.invisionapp.com/share/937T7ZPPF#/screens/170578741
@nairvineeth
Name/Title: Edit mode is activated either by clicking on the pencil/edit icon or by clicking on the placeholder text. If user blanks out the title, then clicking outside the box or hitting "enter/return key" will revert back to previous value.
@interactivellama and I talked with SLDS team today, and they suggested holding off on this for now until patterns have been developed by their team or Platform UX Patterns team. If a solution is needed right away, the intermediary fix is to add the pencil icon next to the fields and when clicked, open a Popover dialog to edit the field there. The Popover dialog should have a save/cancel button too.
Patterns have been developed by the MC UX Team... should we submit them as a PR to SLDS?
Correct me if I'm wrong @brandonferrua , but I think the response was that inline edit in a page header would ever be an official pattern any time soon, because of the technical limitations of "Core" engineering.
Adding features are the responsibility of the consuming product team. Please follow up if any B2C UXE or SLDS decisions need to be made.