Skip to content

Commit

Permalink
fix(Tooltip): change labelClose to accept string only
Browse files Browse the repository at this point in the history
  • Loading branch information
mainframev committed May 24, 2023
1 parent 1ce0c9e commit 97a7115
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/orbit-components/src/Tooltip/README.md
Expand Up @@ -36,7 +36,7 @@ Table below contains all types of the props available in the Tooltip component.
| offset | `[number, number]` | `[0, 5]` | Set offset `[vertical, horizontal]` for Tooltip |
| tabIndex | `string \| number` | `"0"` | Specifies the tab order of an element |
| onShow | `() => void \| () => Promise<void>` | | Callback when Tooltip is shown |
| labelClose | `React.Node` | `Close` | Label for close button. |
| labelClose | `string` | `Close` | Label for close button. |

## enum

Expand Down
2 changes: 1 addition & 1 deletion packages/orbit-components/src/Tooltip/index.js.flow
Expand Up @@ -20,7 +20,7 @@ export type Props = {|
+size?: Sizes,
+onShow?: () => void | Promise<void>,
+enabled?: boolean,
+labelClose?: React.Node,
+labelClose?: string,
+renderInPortal?: boolean,
+stopPropagation?: boolean,
+tabIndex?: string | number,
Expand Down
2 changes: 1 addition & 1 deletion packages/orbit-components/src/Tooltip/types.d.ts
Expand Up @@ -16,7 +16,7 @@ export interface Props extends Common.Globals, Popper {
readonly stopPropagation?: boolean;
readonly enabled?: boolean;
readonly onShow?: Common.Callback;
readonly labelClose?: React.ReactNode;
readonly labelClose?: string;
readonly placement?: Placement;
readonly tabIndex?: string | number;
readonly removeUnderlinedText?: boolean;
Expand Down

0 comments on commit 97a7115

Please sign in to comment.