Skip to content

Commit

Permalink
Fix focus trap issue in sankey chart (#31310)
Browse files Browse the repository at this point in the history
  • Loading branch information
krkshitij committed May 14, 2024
1 parent aa5c395 commit bf854a4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Fix focus trap issue in sankey chart",
"packageName": "@fluentui/react-charting",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FocusZone, FocusZoneDirection, FocusZoneTabbableElements } from '@fluentui/react-focus';
import { FocusZone, FocusZoneDirection } from '@fluentui/react-focus';
import { Callout, DirectionalHint } from '@fluentui/react/lib/Callout';
import { IProcessedStyleSet, ITheme } from '@fluentui/react/lib/Styling';
import {
Expand Down Expand Up @@ -792,11 +792,7 @@ export class SankeyChartBase extends React.Component<ISankeyChartProps, ISankeyC
ref={(rootElem: HTMLDivElement) => (this.chartContainer = rootElem)}
onMouseLeave={this._onCloseCallout}
>
<FocusZone
direction={FocusZoneDirection.bidirectional}
isCircularNavigation={true}
handleTabKey={FocusZoneTabbableElements.all}
>
<FocusZone direction={FocusZoneDirection.bidirectional}>
<svg width={width} height={height} id={this._chartId}>
<g className={classNames.links} strokeOpacity={1}>
{linkData}
Expand Down

0 comments on commit bf854a4

Please sign in to comment.