Skip to content

[Lens] fix amsterdam theme issues#97237

Merged
mbondyra merged 13 commits intoelastic:masterfrom
mbondyra:lens/fix_amsterdam_theme
Apr 20, 2021
Merged

[Lens] fix amsterdam theme issues#97237
mbondyra merged 13 commits intoelastic:masterfrom
mbondyra:lens/fix_amsterdam_theme

Conversation

@mbondyra
Copy link
Copy Markdown
Contributor

@mbondyra mbondyra commented Apr 15, 2021

Summary

Fixes #95054

  • adds border to the toolbar buttons (so far they are only used in Lens, and all of these borders make sense:

Screenshot 2021-04-15 at 14 24 37

  • weird ranges/filter shadows fixed

Screenshot 2021-04-15 at 14 25 04

  • suggestion shadows fixed

Screenshot 2021-04-15 at 14 26 18

  • 'add new layer' button to fill

Screenshot 2021-04-15 at 15 22 58

  • adjusting border radius on workspace

Screenshot 2021-04-15 at 14 25 21

  • adjust styles for filter by to look like ranges/filters aggregations filters

Screenshot 2021-04-15 at 14 26 50

  • changing the inner focus style for field items

Screenshot 2021-04-15 at 14 27 43 1

@mbondyra mbondyra added Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Feature:Lens labels Apr 15, 2021
@mbondyra mbondyra marked this pull request as ready for review April 15, 2021 12:29
@mbondyra mbondyra requested a review from a team April 15, 2021 12:29
@mbondyra mbondyra requested a review from a team as a code owner April 15, 2021 12:29
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

Copy link
Copy Markdown
Contributor

@flash1293 flash1293 left a comment

Choose a reason for hiding this comment

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

Add layer button should use color="text" in addition to fill, otherwise works great.
I don't think another review cycle is necessary, apporving

@mbondyra mbondyra force-pushed the lens/fix_amsterdam_theme branch from 009b156 to cd01ece Compare April 15, 2021 13:37
@elastic elastic deleted a comment from kibanamachine Apr 15, 2021
Copy link
Copy Markdown
Contributor

@wylieconlon wylieconlon left a comment

Choose a reason for hiding this comment

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

This is definitely an improvement, but I noticed a few inconsistencies that seem related to the new theme. Not sure if there's a simple fix:

  1. Some popovers get a focus outline that is above the arrow, some popovers get a focus outline that is below the arrow, and some get no focus outline at all:
    a. Correct behavior (below the arrow) is shown only in the chart switcher
    b. Outline is below the arrow on all the toolbar buttons:

Screen Shot 2021-04-15 at 3 26 33 PM

c. Outline is not shown on the first layer's index pattern switcher, but it is shown on the second layer

Screen Shot 2021-04-15 at 3 27 23 PM

  1. With two layers there is no padding underneath the Add Layer button:

Screen Shot 2021-04-15 at 3 28 25 PM

@mbondyra
Copy link
Copy Markdown
Contributor Author

mbondyra commented Apr 19, 2021

Thanks for the feedback @wylieconlon! For now we won't address all the issues with outline and focus as we're waiting for the changes from eui. I've added your comments to the issue and fixed the missing pading for the add Layer button.

@mbondyra
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@ryankeairns
Copy link
Copy Markdown
Contributor

Side note: the Presentation team is using the same toolbar button styles, so I've opened an EUI issue to discuss whether these should ultimately move to EUI, in the future: elastic/eui#4730

Copy link
Copy Markdown
Contributor

@ryankeairns ryankeairns left a comment

Choose a reason for hiding this comment

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

SCSS changes look good. Thanks for cleaning up the streets of Amsterdam 🧹

@@ -4,6 +4,10 @@

// Some toolbar buttons are just icons, but EuiButton comes with margin and min-width that need to be removed
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not critical, but a comment pointing to elastic/eui#4730 would help us remember to replace/remove this code later.

@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
lens 943.8KB 944.5KB +712.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
kibanaReact 117.5KB 117.6KB +72.0B

History

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

@mbondyra mbondyra merged commit b227b8f into elastic:master Apr 20, 2021
@mbondyra
Copy link
Copy Markdown
Contributor Author

to be backported when 7.13 is detached

@MichaelMarcialis
Copy link
Copy Markdown
Contributor

Side note: the Presentation team is using the same toolbar button styles, so I've opened an EUI issue to discuss whether these should ultimately move to EUI, in the future: elastic/eui#4730

@ryankeairns: Just FYI, assuming time permits, I may experiment with some additional toolbar treatments (background color, borders, shadows) to see if there is one clear direction that jives with Amsterdam best. Stay tuned.

@ryankeairns
Copy link
Copy Markdown
Contributor

Side note: the Presentation team is using the same toolbar button styles, so I've opened an EUI issue to discuss whether these should ultimately move to EUI, in the future: elastic/eui#4730

@ryankeairns: Just FYI, assuming time permits, I may experiment with some additional toolbar treatments (background color, borders, shadows) to see if there is one clear direction that jives with Amsterdam best. Stay tuned.

Great! If you arrive at something you're satisfied with, routing it through that EUI issue would be much appreciated. Thanks

@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Apr 22, 2021
@kibanamachine
Copy link
Copy Markdown
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create backports run node scripts/backport --pr 97237 or prevent reminders by adding the backport:skip label.

mbondyra added a commit to mbondyra/kibana that referenced this pull request Apr 22, 2021
* adding border to the toolbar buttons

* Weird ranges/filters shadows/borders fixed

* suggestion shadows fixed

* adjusting border radius on workspace

* add new layer button

* adjust styles for filter by just like for filter agg

* don't show outer style for selecting the field item

* fix color button

* add padding to the button

* v8 conditional

* fix v7

* Update toolbar_button.scss

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Apr 22, 2021
mbondyra added a commit that referenced this pull request Apr 22, 2021
* adding border to the toolbar buttons

* Weird ranges/filters shadows/borders fixed

* suggestion shadows fixed

* adjusting border radius on workspace

* add new layer button

* adjust styles for filter by just like for filter agg

* don't show outer style for selecting the field item

* fix color button

* add padding to the button

* v8 conditional

* fix v7

* Update toolbar_button.scss

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Lens release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Lens] v8 theme adjustments

7 participants