-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
User configurable scale color for Kibana maps #128783
Comments
Pinging @elastic/kibana-gis (Team:Geo) |
I wonder if this should include changing the color for the mouse coordinates and attribution overlays as well? We should probably make it consistent. |
And attribution as well |
Pinging @elastic/kibana-presentation (Team:Presentation) |
@jsanz suggested adding a halo or colored background to avoid another setting/difficulties with dark/light mode. |
I believe the halo was intended on this code but it is broken kibana/x-pack/plugins/maps/public/connected_components/right_side_controls/_mixins.scss Lines 2 to 7 in 82c87a7
Just fixing that I'll open a small PR tomorrow |
… controls (elastic#189639) ## Summary Fixes elastic#128783 This PR fixes the visualization of the texts in Maps scale bar, attribution, and coordinate controls with a dark background. ## Context While checking on the scale bar component of the map I saw this SCSS mixin that seemed to be broken. Originally I thought on fixing the shadow but the readability of the text is not great for dark background (see 7f2a698) <details><summary>Adding a shadow</summary> | before | after | | :--:| :--:| |![2024-07-31_16-17](https://github.com/user-attachments/assets/23239b0d-826e-482e-ac67-fe7faa50d696) | ![2024-07-31_16-18](https://github.com/user-attachments/assets/dffe0873-86dd-46b3-877e-ff4f5ef92c32) | </details> So I decided to propose to fix this by adding a background as is usual in other platforms. ![image](https://github.com/user-attachments/assets/7a7d0d11-1cf6-4961-b872-a5247c930363) ![image](https://github.com/user-attachments/assets/2c3d893b-f380-4724-9ad5-93adb6ec9fb6) ![image](https://github.com/user-attachments/assets/1a9becbc-40b1-4631-8360-f2a1bfafc9c2) (cherry picked from commit 32dd373)
…rdinate controls (#189639) (#191408) # Backport This will backport the following commits from `main` to `8.15`: - [[Maps] Fix text readability on map scale, attribution, and coordinate controls (#189639)](#189639) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Jorge Sanz","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-08-27T09:06:15Z","message":"[Maps] Fix text readability on map scale, attribution, and coordinate controls (#189639)\n\n## Summary\r\n\r\nFixes #128783\r\n\r\nThis PR fixes the visualization of the texts in Maps scale bar,\r\nattribution, and coordinate controls with a dark background.\r\n\r\n## Context\r\n\r\nWhile checking on the scale bar component of the map I saw this SCSS\r\nmixin that seemed to be broken.\r\n\r\nOriginally I thought on fixing the shadow but the readability of the\r\ntext is not great for dark background (see\r\n7f2a698f4401c9b22f5c526ad8cfaa7839e30282)\r\n\r\n<details><summary>Adding a shadow</summary>\r\n\r\n| before | after |\r\n| :--:| :--:| \r\n\r\n|![2024-07-31_16-17](https://github.com/user-attachments/assets/23239b0d-826e-482e-ac67-fe7faa50d696)\r\n|\r\n![2024-07-31_16-18](https://github.com/user-attachments/assets/dffe0873-86dd-46b3-877e-ff4f5ef92c32)\r\n|\r\n</details>\r\n\r\nSo I decided to propose to fix this by adding a background as is usual\r\nin other platforms.\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/7a7d0d11-1cf6-4961-b872-a5247c930363)\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/2c3d893b-f380-4724-9ad5-93adb6ec9fb6)\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/1a9becbc-40b1-4631-8360-f2a1bfafc9c2)","sha":"32dd3730fa70acdb2e37918861c32537ffd2fc7e","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Presentation","backport:prev-minor","Feature:Maps","v8.16.0"],"title":"[Maps] Fix text readability on map scale, attribution, and coordinate controls","number":189639,"url":"https://github.com/elastic/kibana/pull/189639","mergeCommit":{"message":"[Maps] Fix text readability on map scale, attribution, and coordinate controls (#189639)\n\n## Summary\r\n\r\nFixes #128783\r\n\r\nThis PR fixes the visualization of the texts in Maps scale bar,\r\nattribution, and coordinate controls with a dark background.\r\n\r\n## Context\r\n\r\nWhile checking on the scale bar component of the map I saw this SCSS\r\nmixin that seemed to be broken.\r\n\r\nOriginally I thought on fixing the shadow but the readability of the\r\ntext is not great for dark background (see\r\n7f2a698f4401c9b22f5c526ad8cfaa7839e30282)\r\n\r\n<details><summary>Adding a shadow</summary>\r\n\r\n| before | after |\r\n| :--:| :--:| \r\n\r\n|![2024-07-31_16-17](https://github.com/user-attachments/assets/23239b0d-826e-482e-ac67-fe7faa50d696)\r\n|\r\n![2024-07-31_16-18](https://github.com/user-attachments/assets/dffe0873-86dd-46b3-877e-ff4f5ef92c32)\r\n|\r\n</details>\r\n\r\nSo I decided to propose to fix this by adding a background as is usual\r\nin other platforms.\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/7a7d0d11-1cf6-4961-b872-a5247c930363)\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/2c3d893b-f380-4724-9ad5-93adb6ec9fb6)\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/1a9becbc-40b1-4631-8360-f2a1bfafc9c2)","sha":"32dd3730fa70acdb2e37918861c32537ffd2fc7e"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/189639","number":189639,"mergeCommit":{"message":"[Maps] Fix text readability on map scale, attribution, and coordinate controls (#189639)\n\n## Summary\r\n\r\nFixes #128783\r\n\r\nThis PR fixes the visualization of the texts in Maps scale bar,\r\nattribution, and coordinate controls with a dark background.\r\n\r\n## Context\r\n\r\nWhile checking on the scale bar component of the map I saw this SCSS\r\nmixin that seemed to be broken.\r\n\r\nOriginally I thought on fixing the shadow but the readability of the\r\ntext is not great for dark background (see\r\n7f2a698f4401c9b22f5c526ad8cfaa7839e30282)\r\n\r\n<details><summary>Adding a shadow</summary>\r\n\r\n| before | after |\r\n| :--:| :--:| \r\n\r\n|![2024-07-31_16-17](https://github.com/user-attachments/assets/23239b0d-826e-482e-ac67-fe7faa50d696)\r\n|\r\n![2024-07-31_16-18](https://github.com/user-attachments/assets/dffe0873-86dd-46b3-877e-ff4f5ef92c32)\r\n|\r\n</details>\r\n\r\nSo I decided to propose to fix this by adding a background as is usual\r\nin other platforms.\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/7a7d0d11-1cf6-4961-b872-a5247c930363)\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/2c3d893b-f380-4724-9ad5-93adb6ec9fb6)\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/1a9becbc-40b1-4631-8360-f2a1bfafc9c2)","sha":"32dd3730fa70acdb2e37918861c32537ffd2fc7e"}}]}] BACKPORT--> Co-authored-by: Jorge Sanz <[email protected]>
Describe the feature:
Allow the maps scale color to be user configurable.
Describe a specific use case for the feature:
In certain situations it is very hard to see the scale graphic in the lower left side of a map, such as when the scale appears over a wooded area:
The text was updated successfully, but these errors were encountered: