Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-style and re-order top menu buttons #79206

Merged
merged 3 commits into from
Oct 2, 2020

Conversation

ryankeairns
Copy link
Contributor

@ryankeairns ryankeairns commented Oct 1, 2020

Relates to #72331 (comment)

Summary

With the new stacked header design, 'top menus' (in the legacy Kibana apps) were moved from the app level to the chrome/header level. For some (author included :) ), this has resulted in an undesirable visual design/UX outcome for apps that used filled buttons in their menu. For example:

Competing buttons in Dashboard

Screen Shot 2020-09-23 at 12 59 14 PM

Competing buttons in Lens

Screen Shot 2020-09-23 at 12 59 02 PM

Proposed 7.10 solution introduced by this PR

  • Replace the filled (emphasized) buttons with a hollow/bordered + icon button and make it the last item on the right.
  • For Dashboard, make 'Edit' the last item and add an icon even though it was previously not emphasized.
  • Where possible, use a filled-style icon for additional emphasis (e.g. checkInCircleFilled and plusInCircleFilled)
  • Apps that did not have an emphasized button (Discover, Graph) remain unchanged.

Affected apps (Dashboard, Lens, Visualize, Maps)

Dashboard (edit mode)

Screen Shot 2020-10-01 at 3 19 58 PM

Dashboard (view mode)

Screen Shot 2020-10-01 at 3 19 42 PM

Lens

Screen Shot 2020-10-01 at 3 21 42 PM

Visualize

Screen Shot 2020-10-01 at 3 24 35 PM

Visualize (from Dashboard)

Screen Shot 2020-10-01 at 3 20 31 PM

Maps

Screen Shot 2020-10-01 at 3 25 25 PM

Looking ahead

The recommended approach gets even more 'bold' when viewed in the Amsterdam theme. With the changes proposed by this PR, it would look as follows when the theme is enabled. Additionally, the plan is for this new theme to become the default later in the 7.x series.

Screen Shot 2020-10-01 at 3 29 51 PM

Screen Shot 2020-10-01 at 3 27 21 PM

In addition to the top menu, teams may begin exploring additional UI enhancements if they desire to further emphasize core actions. For example, the Dashboard team is exploring adding a toolbar within their UI (for this and other reasons):

Screen Shot 2020-09-04 at 10 08 40 AM


Checklist

Delete any items that are not applicable to this PR.

@ryankeairns ryankeairns added release_note:skip Skip the PR/issue when compiling release notes v7.10.0 v8.0.0 labels Oct 1, 2020
@ryankeairns ryankeairns marked this pull request as ready for review October 1, 2020 20:31
@ryankeairns ryankeairns requested a review from a team October 1, 2020 20:31
@ryankeairns ryankeairns requested review from a team as code owners October 1, 2020 20:31
Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😍 I'm really diggin the consistent placement and look to the Save/Edit buttons. That'll go a long way for users.

The only one that fails that a bit is the dashboard one, which even the wording of that one "Add new" is confusing because of it's location in the menu bar I'd assume the "New" in that context is a new dashboard. But I know this was a decision made a while back, and by the looks of the "Looking ahead" mocks, that button might move when there's more options.

Thanks for pulling this one together @ryankeairns !

@ryankeairns
Copy link
Contributor Author

ryankeairns commented Oct 1, 2020

😍 I'm really diggin the consistent placement and look to the Save/Edit buttons. That'll go a long way for users.

The only one that fails that a bit is the dashboard one, which even the wording of that one "Add new" is confusing because of it's location in the menu bar I'd assume the "New" in that context is a new dashboard. But I know this was a decision made a while back, and by the looks of the "Looking ahead" mocks, that button might move when there's more options.

Thanks for pulling this one together @ryankeairns !

Woo!
For those following along, the plan is to change that 'Create new' to be 'Add panel'. There are a couple of other changes that need to happen in conjunction, which I believe will be coming soon-ish.

Copy link
Contributor

@ThomThomson ThomThomson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This design is looking great - my only problem with the last one was that there wasn't enough indication of which item the icon belonged to, and this addresses that. Moving the emphasized item to the right, also works quite well here.

I tested on chrome, and did run into a super tiny issue, where the hover state would slightly cut off the top outline of the button:

Screen Shot 2020-10-01 at 5 11 15 PM

Otherwise though, this is really solid.

@ryankeairns
Copy link
Contributor Author

Thanks @ThomThomson
I should have noted that! The clipped button will be fixed once the pending EUI upgrade is merged. The button animation has been removed from the EUI component.

Copy link
Contributor

@ThomThomson ThomThomson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Knowing that the above tiny issue will be fixed, everything LGTM

Copy link
Contributor

@nreese nreese left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screen Shot 2020-10-02 at 5 51 29 AM

Map buttons are out of order with the save and return use case. Save and return button should move to the right just like in Lens.

@ryankeairns
Copy link
Contributor Author

Good catch @nreese . The order has been fixed and, as with the others, only the primary call-to-action (i.e. the button) will show an icon. In this case, when Save and Return is visible, then the icon will not show for Save As.

Default state

Screen Shot 2020-10-02 at 9 38 06 AM

From Dashboard

Screen Shot 2020-10-02 at 9 37 47 AM

Copy link
Contributor

@nreese nreese left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
code review, tested in chrome

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

async chunks size

id before after diff
lens 1010.4KB 1010.5KB +59.0B
maps 3.3MB 3.3MB +63.0B
visualize 271.7KB 271.8KB +107.0B
total +229.0B

page load bundle size

id before after diff
dashboard 570.4KB 570.4KB +39.0B
navigation 21.9KB 22.1KB +166.0B
total +205.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@ryankeairns ryankeairns merged commit d9915fd into elastic:master Oct 2, 2020
ryankeairns added a commit to ryankeairns/kibana that referenced this pull request Oct 2, 2020
* Re-style and re-order top menu buttons

* Update snapshot due to removed fill prop

* Fix link order for Maps
ryankeairns added a commit that referenced this pull request Oct 2, 2020
* Re-style and re-order top menu buttons

* Update snapshot due to removed fill prop

* Fix link order for Maps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants