You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Title picture dialog: after an upload the highlighted button is Replace picture, not Done #587
After a picture is uploaded in the editor's Picture dialog, the highlighted (accent) button is Replace picture. The upload is already saved at that point, so the natural next step is to leave the dialog — but the eye goes to the orange button, and pressing it just opens the file picker again.
Introduced with the dialog in 7468118 (#533): renderPicture() relabels the primary button from Choose picture to Replace picture once a picture exists, but it stays the primary action.
Current
State
Buttons
No picture
Close · Choose picture
Picture uploaded
Remove · Close · Replace picture
Picture set by the image: metadata
Close · Choose picture(disabled)
In the metadata case the only highlighted button is one that can't be pressed.
Proposed
State
Buttons
No picture
Close · Choose picture(unchanged)
Picture uploaded
Remove ……… Replace picture · Done
Picture set by metadata
Done
Once there is a picture, Done (closes the dialog) is the primary action. "Done" rather than "Close" tells the user the upload is already saved.
Replace picture becomes a plain button; clicking the preview still opens the picker too.
Remove moves to the far left, apart from the primary action, as destructive actions usually are (it keeps its confirmation step).
The primary action is always the last button, in tab order as on screen.
Activity
fix(ui): make Done the main action once a title picture is set (cookl…