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

[IconMenu] add a popoverStyle property #4739

Closed
zsxsoft opened this issue Jul 18, 2016 · 2 comments
Closed

[IconMenu] add a popoverStyle property #4739

zsxsoft opened this issue Jul 18, 2016 · 2 comments
Labels
component: menu This is the name of the generic UI component, not the React module! component: Popover The React component. package: icons Specific to @mui/icons

Comments

@zsxsoft
Copy link

zsxsoft commented Jul 18, 2016

Firstly, code here:

      <IconMenu
        iconButtonElement={
          <IconButton tooltip='xxxxx'>
            <Notifications />
          </IconButton>
        }
      >
        <MenuItem xxxxxx />
        <MenuItem xxxxxx />
      </IconMenu>

The children of <IconMenu> was wrapped in PopoverDefaultAnimation > Paper > div > div > div.

As the screenshot, I want to set the top attribute in style of PopoverDefaultAnimation > Paper > div, and the source code's here: https://github.com/jareddellitt/material-ui/blob/b59a89a8d737ab3e2e8f2d91380144dcc6efca13/src/Popover/PopoverAnimationDefault.js#L96.

I found it's no way to set props of this, so that I can't customize the style.
Is there any workaround? And is there a plan to support it?

image
image

@mpontikes mpontikes mentioned this issue Aug 5, 2016
13 tasks
@oliviertassinari oliviertassinari changed the title [IconMenu] There's no way to customize the style of IconMenu's Popover [IconMenu] add an popoverStyle property Feb 12, 2017
@oliviertassinari oliviertassinari changed the title [IconMenu] add an popoverStyle property [IconMenu] add a popoverStyle property Feb 12, 2017
@oliviertassinari
Copy link
Member

You are right, we don't expose any property to do it. We would accept a PR for that.

@dingjibang
Copy link

+1

@oliviertassinari oliviertassinari added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Dec 21, 2022
@zannager zannager added component: menu This is the name of the generic UI component, not the React module! component: Popover The React component. package: icons Specific to @mui/icons and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: menu This is the name of the generic UI component, not the React module! component: Popover The React component. package: icons Specific to @mui/icons
Projects
None yet
Development

No branches or pull requests

4 participants