A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
search
AI OnAI Off
Hi,
I'm currently extending the navigation UI to include a new menu item, much like example 2 here: https://docs.developers.optimizely.com/content-cloud/v12.0.0-content-cloud/docs/adding-and-configuring-menu-items
I'm setting the CssClass property on MenuItem with the aim of having this new menu item styled differently to the others, however this property doesn't appear to have any effect, i.e. the class is not applied when I inspect element once loaded.
Is this the correct way to set a CSS class on a new menu item? Is this perhaps getting overwritten at some point further down the pipeline, before it's then rendered?
Any advice is much appreciated, thanks,
Bradley