-
Notifications
You must be signed in to change notification settings - Fork 121
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
fix(xy): show mouse cursors on charts with opaque background #1447
Merged
markov00
merged 1 commit into
elastic:master
from
markov00:2021_10_28-fix_hidden_cursor_behind_chart
Oct 29, 2021
Merged
fix(xy): show mouse cursors on charts with opaque background #1447
markov00
merged 1 commit into
elastic:master
from
markov00:2021_10_28-fix_hidden_cursor_behind_chart
Oct 29, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rshen91
added a commit
to rshen91/elastic-charts
that referenced
this pull request
Oct 28, 2021
markov00
changed the title
fix mouse cursors on xy charts
fix(xy): show mouse cursors on charts with opaque background
Oct 29, 2021
markov00
added
:interactions
Interactions related issue
:xy
Bar/Line/Area chart related
labels
Oct 29, 2021
monfera
approved these changes
Oct 29, 2021
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, tested locally. It covers xy
charts only as the PR title says
🎉 This PR is included in version 38.1.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This was referenced Oct 29, 2021
nickofthyme
pushed a commit
to nickofthyme/elastic-charts
that referenced
this pull request
Nov 2, 2021
nickofthyme
added a commit
that referenced
this pull request
Nov 2, 2021
…1455) Co-authored-by: Marco Vettorello <[email protected]>
nickofthyme
pushed a commit
that referenced
this pull request
Nov 2, 2021
## [38.0.2](v38.0.1...v38.0.2) (2021-11-02) ### Bug Fixes * **interactions:** line cursor above the chart, band cursor below ([#1453](#1453)) ([#1457](#1457)) ([ca004a6](ca004a6)) * **theme:** merge partial with empty initial partial ([#1452](#1452)) ([#1454](#1454)) ([2eadc71](2eadc71)) * **xy:** show mouse cursors on charts with opaque background ([#1447](#1447)) ([#1455](#1455)) ([b416ed5](b416ed5))
This was referenced Nov 2, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
:interactions
Interactions related issue
released
Issue released publicly
:xy
Bar/Line/Area chart related
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This fixes a regression introduced by #1372 that applied the background color to the canvas when clearing the chart.
The opaque canvas prevents the band cursor to be shown behind the data-ink like for bar charts and prevents the cursor line to be shown when the zIndex (applied to the line cursor container) is calculated as zero.
The background color is always ensured by the
<ChartBackground>
component that is always rendered behind the canvasThe VRTs used the EUI theme to ensure the correct rendering in Kibana
Checklist
:xy
,:partition
):interactions
,:axis
)dark
,light
,eui-dark
&eui-light