Hi! Doing some very basic adjustment for better branding on our XWiki site, I’m not able to find how to customize the background and hover colors of the Notifications item in the navigation bar by using a new color theme.
Is it not possible to customize those values by editing the color theme?
XWiki Debian 16.5.0 running here. Thanks!
Hi!
These are defined in xwiki-platform/xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-ui/src/main/resources/XWiki/Notifications/Code/NotificationsDisplayerUIX.xml at master · xwiki/xwiki-platform · GitHub.
So, unless there was a change on your instance in this file, it should indeed be navbar-default-bg
and navbar-default-link-hover-bg
.
Small guess: did you try to restart your instance and/or do a hard refresh in your browser after the change? Your issue might be due to some caching mechanisms specific to the notifications menu.
Hope it helps!
1 Like
A simple hard refresh did the trick. Thanks a sorry for the noise!
Hi! I didn’t see your message earlier unfortunately. I worked on another very similar UX issue recently, it’s a problem of computing context for the style of the notification button.
See XWIKI-22316: Some elements keep main theme CSS values by Sereza7 · Pull Request #3263 · xwiki/xwiki-platform · GitHub , the fix should work for your use case too (don’t hesitate to bump it up with a comment if you’re interested in a merge for the next release
).
Thanks,
Lucas C.
Thanks! I will keep an eye on this issue and double-check the next release! I’m not able to contribute in any other sense: I started, again, to trying to understand how Bootstrap, CSS, LESS, skins and themes work together!