If you are unable to create a new account, please email support@bspsoftware.com

 

Custom Theme: changing the color of the alert bar

Started by dougp, 30 Nov 2022 02:07:01 PM

Previous topic - Next topic

dougp

using CA 11.1.7FP6

I have created a custom theme and changed some colors.  I have also disabled the "what's new" messages, ensured that the alert bar is enabled, and applied a custom message.  I want to be sure this message stands out by changing the background color.  Can this be done in the spec.json file?  I don't see documentation supporting customizing the alert bar at https://www.ibm.com/docs/en/cognos-analytics/11.1.0?topic=roles-creating-themes .

Here is the "colors" object in my spec.json file.

"colors": {
"appbarForeground": "#fff",
"appbarBackground": "#1f57a4",
"navbarSelectLine": "#1f57a4",
"navbarPushButtonBackground": "#fff",
"navbarForeground": "#1d3458",
"appbarSelectLine": "#fff",
"navbarBackground": "#eaeaea",
"appbarPushButtonBackground": "#1d3458",
"persistentBannerBarBackground": "#ff0000",
"ba-alert-containerBackground": "#00ff00"
}

I added persistentBannerBarBackground because the object appears to be com.ibm.bi.glass.persistentBannerBar (like com.ibm.bi.glass.appbar)
  and ba-alert-containerBackground because the alert container has the class ba-alert-container (which is where I see the color applied, and the appbar has the class "appbar").
But I'm spitballing here.  Neither works.