mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[Maps] Fix text readability on map scale, attribution, and coordinate controls (#189639)
## Summary
Fixes #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
7f2a698f44
)
<details><summary>Adding a shadow</summary>
| before | after |
| :--:| :--:|
|
|

|
</details>
So I decided to propose to fix this by adding a background as is usual
in other platforms.



This commit is contained in:
parent
9293bc1917
commit
32dd3730fa
3 changed files with 7 additions and 9 deletions
|
@ -5,9 +5,10 @@
|
|||
bottom: $euiSizeM;
|
||||
pointer-events: none;
|
||||
color: $euiTextColor;
|
||||
border-left: 2px solid $euiTextColor;
|
||||
border-bottom: 2px solid $euiTextColor;
|
||||
border-left: 2px solid rgba($euiTextColor, .6);
|
||||
border-bottom: 2px solid rgba($euiTextColor, .6);
|
||||
text-align: right;
|
||||
@include mapOverlayIsTextOnly;
|
||||
}
|
||||
|
||||
.mapScaleControlFullScreen {
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
@mixin mapOverlayIsTextOnly {
|
||||
text-shadow:
|
||||
0 0 2px $euiColorEmptyShade,
|
||||
0 0 1px $euiColorEmptyShade,
|
||||
0 0 1px $euiColorEmptyShade,
|
||||
0 0 1px $euiColorEmptyShade,
|
||||
0 0 1px $euiColorEmptyShade 0 0 1px $euiColorEmptyShade 0 0 1px $euiColorEmptyShade;
|
||||
background-color: $euiPageBackgroundColor;
|
||||
|
||||
padding-left: $euiSizeXS;
|
||||
padding-right: $euiSizeXS;
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
@include mapOverlayIsTextOnly;
|
||||
@include euiTextBreakWord;
|
||||
pointer-events: all;
|
||||
padding-left: $euiSizeM;
|
||||
}
|
||||
|
||||
.mapAttributionControl__fullScreen {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue