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

MegaMenu: at items array item - style or styleClass NOT working #12771

Closed
eXpertise7 opened this issue Mar 20, 2023 · 0 comments · Fixed by #12791
Closed

MegaMenu: at items array item - style or styleClass NOT working #12771

eXpertise7 opened this issue Mar 20, 2023 · 0 comments · Fixed by #12791
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@eXpertise7
Copy link

eXpertise7 commented Mar 20, 2023

Describe the bug

Setting values for style or styleClass attributes not working at p-megaMenu component at inidividual object at items list.

Code:
image

navigationItems type of Array<MegaMenuItem> as written in docs should support in it's items array styleClass and style attributes to apply CSS for specific MegaMenu item in items array. It does NOT work, even if you provide it at MenuItem interface (can be seen fully at bottom).

CSS should be applied and should be seen in the Inspector screenshoot either at <li> or <a> item.

<li> item:
image

<a>
image

Environment

Angular 14 framework, Windows 10, Google Chrome browser.

Reproducer

No response

Angular version

14.1.1

PrimeNG version

14.2.2

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

16.13.1

Browser(s)

No response

Steps to reproduce the behavior

Try to add style or styleClass attributes at items array (MenuItem type) at MegaMenu (MegaMenuItem type) component.

Expected behavior

CSS should be applied to any MenuItem item when style or styleClass attributes are applied through TypeScript on MegaMenuItem list pushing array on component initialization.

MegaMenuItem and MenuItem model (style and styleClass available in both):
image

@eXpertise7 eXpertise7 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Mar 20, 2023
@eXpertise7 eXpertise7 changed the title MegaMenu component: at items array item - style or styleClass NOT working MegaMenu: at items array item - style or styleClass NOT working Mar 20, 2023
volvachev added a commit to volvachev/primeng that referenced this issue Mar 22, 2023
volvachev added a commit to volvachev/primeng that referenced this issue Mar 22, 2023
@cetincakiroglu cetincakiroglu added this to the 15.3.1 milestone Apr 12, 2023
@cetincakiroglu cetincakiroglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Apr 12, 2023
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

Successfully merging a pull request may close this issue.

2 participants