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

Problem styling menuItems with selectedMenuItemStyle #5166

Closed
mpint opened this issue Sep 13, 2016 · 0 comments
Closed

Problem styling menuItems with selectedMenuItemStyle #5166

mpint opened this issue Sep 13, 2016 · 0 comments
Labels
component: menu This is the name of the generic UI component, not the React module! package: styles Specific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5. v0.x

Comments

@mpint
Copy link

mpint commented Sep 13, 2016

Problem description

Menu's selectedMenuItemStyle doesn't seem to be applied correctly to active menuItem's.

Steps to reproduce

After reading the Menu docs,

selectedMenuItemStyle | object | | Override the inline-styles of selected menu items

I expect this to set color: red on MenuItem -> primaryText when I click on MenuItem:

<Menu selectedMenuItemStyle={{ color: 'red'}}>
 <MenuItem
   style={ menuItemStyles }
   primaryText={ pages.dashboard.title.toUpperCase() }
   containerElement={<NavLink to={ `${pages.dashboard.slug}` } />} />
</Menu>

Am I missing something or is this bugged? Thanks for any help in advance.

stackoverflow here

Versions

  • Material-UI: 0.15.4
  • React: 15.3.1
  • Browser: Chrome
@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! v0.x package: styles Specific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5. and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 11, 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! package: styles Specific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5. v0.x
Projects
None yet
Development

No branches or pull requests

3 participants