Skip to content

Commit

Permalink
fix tooltip callout keyboard focus order for accessibility (#2464)
Browse files Browse the repository at this point in the history
  • Loading branch information
imatiach-msft authored Dec 18, 2023
1 parent 2a6ff82 commit 09a8e7a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import { Callout, FocusZone, IconButton } from "@fluentui/react";
import { FocusTrapCallout, FocusZone, IconButton } from "@fluentui/react";
import { FluentUIStyles } from "@responsible-ai/core-ui";
import React from "react";

Expand Down Expand Up @@ -46,7 +46,7 @@ export class InfoCallout extends React.Component<
}}
/>
{this.state.isCalloutVisible && (
<Callout
<FocusTrapCallout
target={`#${this.props.iconId}`}
setInitialFocus
onDismiss={this.onDismiss}
Expand All @@ -58,7 +58,7 @@ export class InfoCallout extends React.Component<
<span>{this.props.infoText}</span>
</div>
</FocusZone>
</Callout>
</FocusTrapCallout>
)}
</span>
);
Expand Down

0 comments on commit 09a8e7a

Please sign in to comment.