Hi @Ian_McLaren,
Good news! Instead of adding CSS to a text block off the canvas, you can now directly insert CSS into Dashboard Themes like this:
PageTheme classic {
// existing theme properties
custom_css: @css
/* your custom CSS rules here */
;;
}
Here are a few benefits of this approach:
- Define once - Use everywhere: Once a CSS snippet is added in a theme, it automatically applies to all dashboards using that theme. So you don’t need to manually add custom CSS to a TextBlock in each dashboard.
- Scoped Styling: Your CSS is properly scoped to only affect elements within the Canvas Dashboard, ensuring it doesn’t interfere with other parts of the application.
Check out this announcement for more details