Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Bojhan’s picture

This is basically, for all usecases were we have two buttons.

Because we are not yet sure, we want it on all primary buttons - I didn't do that here.

Bojhan’s picture

Status: Active » Needs review
Bojhan’s picture

Now the patch to mark all primary buttons blue in Structure.

  • Noticed some inconsistencies:
  • "Save blocks" -> We normally just call this "Save"
  • Blocks config has no delete link
 

*This has a serious side-effect, it also marks all forms that implement system_config_form its "Save configuration" buttons blue.

swentel’s picture

Status: Needs review » Needs work
+++ b/core/modules/block/block.admin.incundefined
@@ -173,6 +173,7 @@ function block_admin_display_form($form, &$form_state, $blocks, $theme, $block_r
+	'#button_type' => 'primary',

Tabs instead of spaces everywhere you put #button_type

+++ b/core/modules/menu/menu.admin.incundefined
@@ -407,8 +408,8 @@ function menu_edit_item($form, &$form_state, $type, $item, $menu) {
+ ¶

A space

Bojhan’s picture

Status: Needs work » Needs review

Cool, that can be fixed.

Setting this back to review to get more feedback on changing the UI guideline, from using blue buttons "everywhere there are two buttons" to "everywhere we can find a primary button".

yoroy’s picture

Yes, I think that makes sense. It will make that blue button something you can rely on, you can click it and the form will be submitted/your stuff will be saved. Lets do this :)

Shyamala’s picture

Component: toolbar.module » other

This is not part of toolbar module...

webchick’s picture

The screenshots in #3 look a bit weird to me. OTOH, yoroy's "blue button something you can rely on, you can click it and the form will be submitted/your stuff will be saved" makes sense to me. Let's try it and we can always revisit later if we decide it's overwhelming.

Bojhan’s picture

Agreed, can someone else fix the spaces - I dont know how to get those tabs to show up in my editor

swentel’s picture

FileSize
5.13 KB
yoroy’s picture

Status: Needs review » Needs work

Patch needs a bit of cleanup

yoroy’s picture

Status: Needs work » Needs review

Nice crosspost :)

yoroy’s picture

None of the primary submits in Field UI are blue. Intentional or oversight?

Bojhan’s picture

Intentional, I think we need to figure out what to do with those two buttons its one of the few places in core we do it and it doesn't have a clear 80% primary button.

yoroy’s picture

Status: Needs review » Reviewed & tested by the community

I tested the patch and it does what it says it does. I opened #1853260: Which ones of the Field UI submit buttons should be blue? to discuss the special snowflakes that are in Field UI.

catch’s picture

Status: Reviewed & tested by the community » Fixed

This looks good to me, fine with tackling Field UI in a follow-up, so I've committed/pushed to 8.x.

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Updated issue summary.