Skip to content

Commit

Permalink
fix: expose inc prop on OverlayTriggerProps (#1086)
Browse files Browse the repository at this point in the history
I've had to write this

```
      <ButtonMenu
        // @ts-ignore: it works but prop isn't exposed
        trigger={{ icon: "verticalDots", inc: 2.3 }}
```

more than a few times lately 😄
  • Loading branch information
apattersonATX-HB authored Nov 11, 2024
1 parent c6b69e4 commit 2cd23c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/internal/OverlayTrigger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { noop, useTestIds } from "src/utils";
import { defaultTestId } from "src/utils/defaultTestId";

interface TextButtonTriggerProps extends Pick<ButtonProps, "label" | "variant" | "size" | "icon"> {}
interface IconButtonTriggerProps extends Pick<IconButtonProps, "icon" | "color" | "compact" | "contrast"> {}
interface IconButtonTriggerProps extends Pick<IconButtonProps, "icon" | "color" | "compact" | "contrast" | "inc"> {}
interface AvatarButtonTriggerProps extends Pick<AvatarButtonProps, "src" | "name" | "size"> {}
interface NavLinkButtonTriggerProps extends Pick<NavLinkProps, "active" | "variant" | "icon"> {
navLabel: string;
Expand Down

0 comments on commit 2cd23c4

Please sign in to comment.