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

[Maps] Fix some overlays designs #36837

Merged
merged 9 commits into from
May 22, 2019
Merged

Conversation

cchaos
Copy link
Contributor

@cchaos cchaos commented May 21, 2019

1. Better text as overlay

Uses font-shadows to decrease the attention but still provide some contrast

Screen Shot 2019-05-21 at 18 05 14 PM

2. Changed Mapbox zoom icons to be the same as EUI icons

Also fixes it in dark mode

Before
Screen Shot 2019-05-21 at 17 31 16 PM

After
Screen Shot 2019-05-21 at 17 35 52 PM

3. Made “Go to” button an icon button

@nreese Is it possible/easy to move this button to the left side?

Then in embed mode it would need to be between the zoom controls and the toolbar button

4. Fixed layout with scrolling and overflow shadow of right side

The shadow was cut off on the sides

Before
Screen Shot 2019-05-21 at 18 16 15 PM

After
Screen Shot 2019-05-21 at 18 10 23 PM

5. Fix the border size legend to show the full border

Before
Screen Shot 2019-05-21 at 18 45 31 PM

After
Screen Shot 2019-05-21 at 18 48 51 PM

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@cchaos cchaos requested a review from nreese May 21, 2019 22:16
@cchaos cchaos requested a review from a team as a code owner May 21, 2019 22:16
@nreese
Copy link
Contributor

nreese commented May 21, 2019

Is it possible/easy to move this button to the left side?

What do you think about putting the action in the toolbar menu? We can always show the toolbar menu in the maps application

@cchaos cchaos added Team:Platform-Design Team Label for Kibana Design Team. Support the Analyze group of plugins. v7.3.0 v8.0.0 labels May 21, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-design

@nreese
Copy link
Contributor

nreese commented May 21, 2019

Are the zoom in/out buttons supposed to be so dark when kibana is in light mode? They really stand out more then they should

Screen Shot 2019-05-21 at 4 34 06 PM

@cchaos
Copy link
Contributor Author

cchaos commented May 21, 2019

Yes, they are supposed to be the same color as the text color.

@cchaos
Copy link
Contributor Author

cchaos commented May 21, 2019

What do you think about putting the action in the toolbar menu? We can always show the toolbar menu in the maps application

I don't think it's necessary to hide under the toolbar. Especially if we're thinking that the button might also be able to "find current location" or "fit all data" eventually.

@cchaos cchaos added release_note:fix release_note:skip Skip the PR/issue when compiling release notes and removed release_note:fix labels May 21, 2019
@nreese
Copy link
Contributor

nreese commented May 21, 2019

Is it possible/easy to move this button to the left side

I don't think we could move the button within the next few hours. The ToolbarOverlay is positioned absolutely. We would need to put the action buttons into a container and then position that container absolutely.

I can move the button in a follow on PR.

@cchaos
Copy link
Contributor Author

cchaos commented May 21, 2019

Ok, that'll be fine, thx

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.

Thanks for the fixes. I really like the attribution and lat/lon without the white background.

lgtm
code review, tested in chrome and firefox

Copy link
Contributor

@snide snide left a comment

Choose a reason for hiding this comment

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

Small request for hacks. Tested in IE/Chrome.

x-pack/plugins/maps/public/components/_index.scss Outdated Show resolved Hide resolved
// Also fixes dark mode
.mapboxgl-ctrl-icon.mapboxgl-ctrl-zoom-in {
background-repeat: no-repeat;
background-image: url("data:image/svg+xml,%0A%3Csvg width='15px' height='15px' viewBox='0 0 15 15' version='1.1' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='#{hexToRGB($euiTextColor)}' d='M8,7 L8,3.5 C8,3.22385763 7.77614237,3 7.5,3 C7.22385763,3 7,3.22385763 7,3.5 L7,7 L3.5,7 C3.22385763,7 3,7.22385763 3,7.5 C3,7.77614237 3.22385763,8 3.5,8 L7,8 L7,11.5 C7,11.7761424 7.22385763,12 7.5,12 C7.77614237,12 8,11.7761424 8,11.5 L8,8 L11.5,8 C11.7761424,8 12,7.77614237 12,7.5 C12,7.22385763 11.7761424,7 11.5,7 L8,7 Z M7.5,15 C3.35786438,15 0,11.6421356 0,7.5 C0,3.35786438 3.35786438,0 7.5,0 C11.6421356,0 15,3.35786438 15,7.5 C15,11.6421356 11.6421356,15 7.5,15 Z' /%3E%3C/svg%3E");
Copy link
Contributor

Choose a reason for hiding this comment

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

15px i assume so it centers? Surprised this worked in ie11.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

15px is the actual size of the icon
Screen Shot 2019-05-21 at 19 55 34 PM

Why is it surprising to have worked in IE?

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@cchaos cchaos merged commit 2487992 into elastic:master May 22, 2019
@cchaos cchaos deleted the maps-fix-overlays-design branch May 22, 2019 01:25
cchaos added a commit to cchaos/kibana that referenced this pull request May 23, 2019
* Better text as overlay

* Make “Go to” button an icon button

* Fix layout with scrolling and overflow shadow of right side

* Show full stroke of fillable circle

* Moved mapbox styles to a hack file, increased text shadow for better visibility
cchaos added a commit that referenced this pull request May 23, 2019
* Better text as overlay

* Make “Go to” button an icon button

* Fix layout with scrolling and overflow shadow of right side

* Show full stroke of fillable circle

* Moved mapbox styles to a hack file, increased text shadow for better visibility
@nreese nreese added the [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation label May 23, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation release_note:skip Skip the PR/issue when compiling release notes Team:Platform-Design Team Label for Kibana Design Team. Support the Analyze group of plugins. v7.3.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants