Skip to content

Hide callout on legend hover#25978

Merged
krkshitij merged 2 commits into
microsoft:masterfrom
krkshitij:bug-6306
Dec 15, 2022
Merged

Hide callout on legend hover#25978
krkshitij merged 2 commits into
microsoft:masterfrom
krkshitij:bug-6306

Conversation

@krkshitij

@krkshitij krkshitij commented Dec 13, 2022

Copy link
Copy Markdown
Contributor

Previous Behavior

The callout stays visible when user hovers over legends

New Behavior

The callout hides when user hovers over legends

@fabricteam

fabricteam commented Dec 13, 2022

Copy link
Copy Markdown
Collaborator

📊 Bundle size report

🤖 This report was generated against 4b52fb0c1a42202c98ea350c9d9411a172b1120d

@size-auditor

size-auditor Bot commented Dec 13, 2022

Copy link
Copy Markdown

Asset size changes

Size Auditor did not detect a change in bundle size for any component!

Baseline commit: 4b52fb0c1a42202c98ea350c9d9411a172b1120d (build)

@krkshitij
krkshitij marked this pull request as ready for review December 14, 2022 06:46
@krkshitij
krkshitij requested a review from a team as a code owner December 14, 2022 06:46
@@ -477,6 +477,7 @@ export class AreaChartBase extends React.Component<IAreaChartProps, IAreaChartSt
},
hoverAction: () => {
this._onLegendHover(singleChartData.legend);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should handleChartMouseLeave come first.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this doesn't make much of a difference result-wise as setState is asynchronous. But it will surely be easier to understand if handleChartMouseLeave comes first

@codesandbox-ci

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 690e9e4:

Sandbox Source
@fluentui/react 8 starter Configuration
@fluentui/react-components 9 starter Configuration

@krkshitij
krkshitij merged commit 7af0c88 into microsoft:master Dec 15, 2022
Hotell pushed a commit to Hotell/fluentui that referenced this pull request Feb 9, 2023
* hide callout on legend hover

* add change file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants