Skip to content

Commit

Permalink
Merge pull request #159 from element-hq/florianduros/fix-tooltip-appe…
Browse files Browse the repository at this point in the history
…arance

Fix tooltip display
  • Loading branch information
florianduros authored Apr 18, 2024
2 parents 4c194b6 + 686b695 commit d3ade46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ exports[`PasswordControl > switches the input type > invisible 2`] = `
/>
<button
aria-controls=":r0:"
aria-describedby=":r3:"
aria-label="Show"
class="_action_1689d3"
data-state="closed"
data-state="open"
type="button"
>
<svg
Expand Down Expand Up @@ -85,9 +86,10 @@ exports[`PasswordControl > switches the input type > visible 1`] = `
/>
<button
aria-controls=":r0:"
aria-describedby=":r3:"
aria-label="Hide"
class="_action_1689d3"
data-state="closed"
data-state="open"
type="button"
>
<svg
Expand Down
1 change: 1 addition & 0 deletions src/components/Tooltip/useTooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export function useTooltip({
});
const focus = useFocus(context, {
enabled: controlledOpen === undefined,
visibleOnly: false,
});
const dismiss = useDismiss(context);
const role = useRole(context, { role: "tooltip" });
Expand Down

0 comments on commit d3ade46

Please sign in to comment.