-
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
[Uptime] New width/delay definition for waterfall sidebar item tooltip #100147
[Uptime] New width/delay definition for waterfall sidebar item tooltip #100147
Conversation
Pinging @elastic/uptime (Team:uptime) |
e22c3df
to
816025a
Compare
My personal opinion is the I keep hovering and expecting it to happen much sooner. Perhaps we could add a |
@elasticmachine merge upstream |
3105360
to
4a79d37
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -143,7 +143,11 @@ export const WaterfallChartLegendContainer = euiStyled.div` | |||
box-shadow: 0px -1px 4px 0px ${(props) => props.theme.eui.euiColorLightShade}; | |||
`; // NOTE: EuiShadowColor is a little too dark to work with the background-color | |||
|
|||
export const WaterfallChartTooltip = euiStyled.div` | |||
export const WaterfallResponsiveMaxWidth = euiStyled.div` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like this name is a little bit generic. Feels like it may be intended to use in multiple places when this is really just meant to be used for the tooltip. I suppose it could be reused, but I'm not sure as of yet what we're reuse it for.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I was unsure what to name it, can revise to WaterfallTooltipResponsiveMaxWidth
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed this name to be tooltip-specific c513c65.
Any better suggestions are welcome 🙂
@dominiqueclarke thanks for catching that. I've added a custom LMK if you have any thoughts on a better way. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -80,7 +81,13 @@ export const MiddleTruncatedText = ({ ariaLabel, text, onClick, setButtonRef, ur | |||
<EuiScreenReaderOnly> | |||
<span data-test-subj="middleTruncatedTextSROnly">{text}</span> | |||
</EuiScreenReaderOnly> | |||
<EuiToolTip content={text} position="top" data-test-subj="middleTruncatedTextToolTip"> | |||
<WaterfallTooltipResponsiveMaxWidth | |||
as={EuiToolTip} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL. Does this mean that the div in euiStyled.div
is essentially overwritten and the wrapper now becomes EuiToolTip?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly that; very cool helper prop for composability/reusability.
@dominiqueclarke we had another PR edit I did this because it seems that this is what we want. I'm happy to revert if this has changed. cc @paulb-elastic |
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Async chunks
Unknown metric groupsReferences to deprecated APIs
History
To update your PR or re-run it, just comment with: |
@justinkambic thanks, it is better for the index to be included, so that the user maintains context (e.g. knowing it's request # 127 they're seeing in the waterfall chart, and inspecting with the mouseover). |
Duly noted. I think we are ok to merge this then. |
elastic#100147) * Add new width definition for waterfall sidebar item. Add delay to tooltip. * Add default value for style if/when undefined. * Create shared style for eui breakpoints to use by both waterfall tooltip types. * Add a comment. * Use viewport units instead of breakpoints. * Rename a style. * Add top margin to prevent tooltip from missing target item. Rename a style. * Adjust custom `margin-top`. * Add index to tooltip content. Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
#100147) (#101083) * Add new width definition for waterfall sidebar item. Add delay to tooltip. * Add default value for style if/when undefined. * Create shared style for eui breakpoints to use by both waterfall tooltip types. * Add a comment. * Use viewport units instead of breakpoints. * Rename a style. * Add top margin to prevent tooltip from missing target item. Rename a style. * Adjust custom `margin-top`. * Add index to tooltip content. Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Justin Kambic <justin.kambic@elastic.co>
…sens/kibana into reporting/new-png-pdf-report-type * 'reporting/new-png-pdf-report-type' of github.com:jloleysens/kibana: (46 commits) [Security Solution] Add Ransomware canary advanced policy option (elastic#101068) [Exploratory view] Core web vitals (elastic#100320) [Security solution][Endpoint] Add unit tests for fleet event filters/trusted apps cards (elastic#101034) [Lens] Use a setter function for the dimension panel (elastic#101123) [Index Patterns] Fix return saved index pattern object (elastic#101051) [CI] For PRs, build TS refs before public api docs check (elastic#100791) [Maps] fix line and polygon label regression (elastic#101085) Migrate CCR to new ES JS client. (elastic#100131) [Canvas] Switch Canvas to use React Router (elastic#100579) [Expressions] Use table column ID instead of name when set (elastic#99724) [DOCS] Updates docs landing page (elastic#100749) [DOCS] Corrects typo in step 3 (elastic#101079) [DOCS] Updates runtime example in Discover (elastic#100926) Migrate kibana.autocomplete config to data plugin (elastic#100586) [Uptime] New width/delay definition for waterfall sidebar item tooltip (elastic#100147) [FTR] Use importExport for saved_object/basic archive (elastic#100244) [Fleet] Better input for multi text input in agent policy builder (elastic#101020) [CI] Buildkite support with Baseline pipeline (elastic#100492) [Reporting/Telemetry] Do not send telemetry if we are in screenshot mode (elastic#100388) Create API keys with metadata (elastic#100682) ...
Summary
Resolves #90909.
Adds a delay of
long
to the waterfall sidebar tooltip, and specifies asmax-width
of slightly less than the EUI Breakpoints.The
max-width
style is applied to both theEuiToolTip
used for the waterfall's sidebar, as well as the custom tooltip passed to EUI Charts for the waterfall chart.Before
After
Author checklist
Telemetry has been added where relevantDocs have been added to this PR covering any new, changed, or removed featuresAutomated tests exist to cover expected and edge case conditionsAny special/edge cases that need to be manually tested must be documentedReviewer checklist
For maintainers