Skip to content

Conversation

lerouxb
Copy link
Contributor

@lerouxb lerouxb commented Sep 18, 2025

Terrible hack to try and wrap a guidecue around the drawer toolbar button. Which in itself contains a tooltip.

Right now on initial render it focuses the guidecue and that in turn shows the toolbar button's tooltip for some reason:
Screenshot 2025-09-18 at 17 26 17

I wouldn't go with this, but figured it might be useful as a sketch for what we're trying to achieve.

}: {
buttonProps: IconButtonPropsWithoutChildren;
}) => (
<GuideCue<HTMLButtonElement>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In case it isn't obvious this is our GuideCue from compass-components which wrap's leafygreen's guidecue and exports a different interface, not the raw leafygreen guidecue.

| 'onClick'
>;

export type IconButtonPropsWithoutChildren = Omit<
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't even know. Look away... 😆

@lerouxb
Copy link
Contributor Author

lerouxb commented Sep 19, 2025

closing in favour of #7347

@lerouxb lerouxb closed this Sep 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant