[Lens] Fix delete button position in dimension panel for long labels#69495
[Lens] Fix delete button position in dimension panel for long labels#69495mbondyra merged 4 commits intoelastic:masterfrom
Conversation
|
Pinging @elastic/kibana-app (Team:KibanaApp) |
|
Now that we can not worry about IE11, you can use |
flash1293
left a comment
There was a problem hiding this comment.
I'm not sure whether this fix is enough, I tried it with a veryverylong field name and it seems like I can't press the "x":

Maybe we need some overflow: hidden?
To create my test data:
POST testindex/_doc
{
"veryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryverylongname": 123,
"s": 123
}
|
It only happens for very longs words, but fair point @flash1293, thanks for noticing! Another option would be to add overflow-wrap: break-word: |
|
@mbondyra I actually like that better, otherwise the user might not be able to see what the field is about at all.
Well, what about "Rechtsschutzversicherungsgesellschaften"? 🇩🇪 |
|
cchaos
left a comment
There was a problem hiding this comment.
- Definitely no hyphens. This alters the perception of the name of the fields.
- Can you find a way to remove the focus color from the text portion?
| .lnsDimensionPopover { | ||
| line-height: 0; | ||
| flex-grow: 1; | ||
| max-width: calc(100% - 32px); |
There was a problem hiding this comment.
Need to use eui vars for all px values
| max-width: calc(100% - 32px); | |
| max-width: calc(100% - ${euiSizeXL}); |
|
@elasticmachine merge upstream |
6186978 to
f5efd29
Compare
|
@cchaos I've tried to remove focus background from the button but the only option is to overwrite internal stylings from the button. I am not a fan of this solution - what if we leave it as in 7.8 styling-wise? We can come back to it at some point, but I don't think it's a part of this PR. When it comes to bug with long labels it's ready to review. |
|
I've corrected it in FIeld Item too, creating an issue would take longer than this 😅 Thanks for headsup! |
💚 Build SucceededBuild metrics
History
To update your PR or re-run it, just comment with: |
|
Merging it - visually nothing has changed so I don't think design review is needed. If there's anything else needed, I can address it in the separate PR. |
* master: (34 commits) Upgrade `elliptic` dependency (`6.5.2` → `6.5.3`). (elastic#70054) [License Management] Do not break when `telemetry.enabled:false` (elastic#69711) [SECURITY] Redirect app/security to app/security/overview (elastic#70005) "Explore underlying data" in-chart action (elastic#69494) Api reference docs for state_containers and state_sync (elastic#67354) prep state transfer for passing embeddables by value to editor and back (elastic#69991) move Metrics API to start (elastic#69787) refactor: 💡 fix typo in embeddable (elastic#69417) [alerting] migrates the old `alerting` consumer to be `alerts` (elastic#69982) [APM]Create API to return data to be used on the Overview page (elastic#69137) [Lens] Fix delete button position in dimension panel for long labels (elastic#69495) [Lens] Add toolbar api (elastic#69263) Fixes bug on color picker defaults on TSVB (elastic#69889) [DOCS] Fixes wording in Upload a CSV section (elastic#69969) [Discover] Validate timerange before submitting query to ES (elastic#69363) [Maps] avoid using MAP_SAVED_OBJECT_TYPE constant when defining URL paths (elastic#69723) [Maps] Fix icon palettes are not working (elastic#69937) [Ingest Manager] Fix typo in constant name (elastic#69919) [test] skip status.allowAnonymous tests on cloud (elastic#69017) Fix backport (elastic#70003) ...





Summary
Fixes #69452
Nitpick: The side effect is that highlighting looks a bit off when clicking to trigger dimension popover. @cchaos do you think it's worth to rethink this solution?
