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

ContextMenu and Menubar doesn't render style or styleClass for MenuItems #3296

Closed
ambower opened this issue Jul 4, 2017 · 5 comments
Closed
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@ambower
Copy link

ambower commented Jul 4, 2017

I'm submitting a ... (check one with "x")

[x] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Plunkr Case (Bug Reports)
Please fork the plunkr below and create a case demonstrating your bug report. Issues without a plunkr have much less possibility to be reviewed.

http://plnkr.co/edit/endh8jqxFyZMhblrQ5zF?p=preview

Current behavior
I would like to set inline styles and style classes to the context menu items. When I try and set styles using the MenuItem model, they do not get rendered to the page.

Expected behavior
When style or styleClass are set on the MenuItem, those styles should be applied to the respective context menu item.

Minimal reproduction of the problem with instructions
See the Plunker example above. I would expect the menu item in the context menu to have the 'tallyho' class applied to it.

What is the motivation / use case for changing the behavior?

Custom styling for menu items is a great feature.

Please tell us about your environment:

  • Angular version: 4.1.3
  • PrimeNG version: 4.1.0-rc.3
  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
  • Language: TypeScript 2.0.3

  • Node (for AoT issues): node --version =

@mlaffargue
Copy link

Same problem with the menubar, I modified the plunker to use the class on another element.
http://plnkr.co/edit/w0fTYTzxflgyiW2XkhdQ?p=preview

@cagataycivici cagataycivici changed the title p-contextMenu doesn't render style or styleClass for MenuItems ContextMenu and Menubar doesn't render style or styleClass for MenuItems Jul 11, 2017
@cagataycivici cagataycivici self-assigned this Jul 11, 2017
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Jul 11, 2017
@cagataycivici cagataycivici added this to the 4.1.0 milestone Jul 11, 2017
@PikaChokeMe
Copy link
Contributor

Why was this closed. I am still currently very much having this issue.

@tleveque23
Copy link

The breadcrumb has the same issue. Cannot style a specific MenuItem

@navipegator
Copy link

Seems to be fixed in 5.2.4, at least in

@lr12003
Copy link

lr12003 commented Jul 5, 2018

MenuItem style and styleClass have not been fixed in Breadcrumb yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

7 participants