Forum Discussion
Missing Theme JSON Customization for Card (New) Visual Background and Border
Description:
I’ve encountered a limitation when customizing the Card (New) visual in Power BI using the Theme JSON file. There are two specific settings that do not appear to be exposed in the Theme JSON configuration options:
Visual > Cards > Background (under Cards settings):
This setting does not change when modifying the theme using "visualStyles" as per Microsoft’s Theme JSON documentation.Visual > Cards > Border (under Cards settings):
Similarly, the border setting under Cards is not impacted by any Theme JSON configuration options.
Expected Behavior:
Both the Background and Border for Visual > Cards should be configurable through the Theme JSON file, similar to other visual properties.
Steps to Reproduce:
- Add a Card (New) visual to a Power BI report.
- Apply a theme JSON file that modifies the general background and border settings under "visualStyles".
- Observe that General > Effects > Background and Border changes successfully, but Visual > Cards > Background and Border remain unaffected.
Request:
Please expose the missing Visual > Cards > Background and Border settings for customization in the Theme JSON configuration or clarify how they can be modified if they are already available but undocumented.
Additional Context:
Power BI Version: 2.138.1203.0 64-bit (November 2024)
Theme JSON Used: reportThemeSchema-2.138.json
Hi everyone,
I wanted to follow up on my previous question regarding the Background and Border settings under the Cards section for the Card (New) visual in Power BI. After further investigation and with a helpful response from the community, I found the root cause.
The issue stems from the inconsistent naming conventions used in the Theme JSON file for these settings:
- Background: This is referred to as "fillCustom" instead of the more intuitive "background".
- Border: This is referred to as "outline", which can be confusing.
By using these specific property names in the Theme JSON, I was able to successfully modify the visual settings under Visual > Cards.
4 Replies
- sufinamehNew Member
Hi everyone,
I wanted to follow up on my previous question regarding the Background and Border settings under the Cards section for the Card (New) visual in Power BI. After further investigation and with a helpful response from the community, I found the root cause.
The issue stems from the inconsistent naming conventions used in the Theme JSON file for these settings:
- Background: This is referred to as "fillCustom" instead of the more intuitive "background".
- Border: This is referred to as "outline", which can be confusing.
By using these specific property names in the Theme JSON, I was able to successfully modify the visual settings under Visual > Cards.
- rajendraongole1Super User
Hi sufinameh - Unfortunately, as of now, the Visual > Cards > Background and Border settings are not exposed for direct modification through the Theme JSON file, as you've already observed. These settings are likely managed separately from the general Background and Border settings.
Since this is a limitation of the Power BI platform, I recommend submitting a feature request via the Power BI Ideas forum or contacting Microsoft Support using above link.
Hope this helps.
- sufinamehNew Member
Thank you for your comment, rajendraongole1. I initially thought the same, but after much trial and error, I found a solution that I will share it.