Gutenberg: Consider to improve consistency of the button labels and styles

Created on 27 Apr 2018  路  6Comments  路  Source: WordPress/gutenberg

Please see below, a quick comparison between the post permalink buttons and the shared block button. Initially, the both display an "Edit" button with the same style:

screen shot 2018-04-27 at 18 20 10

Instead, when editing:

  • the first button becomes "OK" and is styled like a default button
  • the second button becomes "Save" and is styled like a primary button (I understand it's to differentiate it from the "Cancel" button)

screen shot 2018-04-27 at 18 20 22

A few considerations:

  • what is the standard text for a save action in Gutenberg? "OK" or "Save"? Seems to me using always the same text would improve consistency and make things easier for users
  • should the "OK" button be styled as a primary button?
  • what is the standard for a save button, should it always be paired with a "Cancel" button?

/Cc @karmatosed

Good First Issue [Type] Enhancement

Most helpful comment

Yeah, "Save" seems more appropriate to me too.

+1

All 6 comments

Good catch, I am always up for unifying where we can.

I would be totally up for having 'save' over 'ok' on both and remove cancel. Unless there are accessibility reasons to have also a cancel? If we removed 'cancel' we'd need to catch the 'not in input' as meaning not editing same as we have for permalinks.

Yeah, "Save" seems more appropriate to me too. No particular a11y reasons for the "Cancel" button I can think of: pressing Escape already closes the edit form. Yep it would need to close also when "clicking outside".

Should the primary style be removed? I guess so?

@afercia thanks and yes I agree it's not a primary action so removing that style makes sense.

Yeah, "Save" seems more appropriate to me too.

+1

@karmatosed can we make an actionable issue out of this?

Yes we are working on #7593 and close to a solution.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

franz-josef-kaiser picture franz-josef-kaiser  路  3Comments

BE-Webdesign picture BE-Webdesign  路  3Comments

mhenrylucero picture mhenrylucero  路  3Comments

cr101 picture cr101  路  3Comments

ellatrix picture ellatrix  路  3Comments