Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: no way to attach Tooltip to OverflowMenu trigger icon button #11364

Closed
1 task done
vmukhachev opened this issue May 8, 2022 · 1 comment
Closed
1 task done

Comments

@vmukhachev
Copy link

vmukhachev commented May 8, 2022

Summary

see the title

Don't know if it might work like below:

            <Tooltip triggerText='test'>
                <OverflowMenu>
                    <OverflowMenuItem itemText='test'></OverflowMenuItem>
                </OverflowMenu>
            </Tooltip>

or if OverflowMenu might have an attribute...

Justification

No response

Desired UX and success metrics

No response

Required functionality

No response

Specific timeline issues / requests

No response

Available extra resources

No response

Code of Conduct

@tay1orjones
Copy link
Member

tay1orjones commented Aug 22, 2022

Tooltips on OverflowMenus aren't supported in v10. Related #9208

In v11 you can wrap the OverflowMenu in a Tooltip with something like this

import { Filter } from '@carbon/icons-react';

...

<Tooltip label="Tooltip contents">
  <OverflowMenu renderIcon={Filter}>
    <OverflowMenuItem itemText="Filter A" />
    <OverflowMenuItem itemText="Filter B" />
  </OverflowMenu>
</Tooltip>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

3 participants