Forum Discussion
Theme template: cardVisual individual toggle not working
Hi,
I am building a Power BI theme template and have run into what appears to be a bug with the new cardVisual and individual padding. The goal is to apply individual outer margins to all card visuals via the theme JSON. The margins themselves (topOuterMargin, rightOuterMargin, etc.) are schema-validated and apply correctly, but only when the "Individual padding" toggle is manually enabled in the format pane first. Through the theme alone, the toggle does not activate, so the margins have no visible effect.
I have tried setting paddingIndividual in the following ways:
- "paddingIndividual": true -> passes validation, but the toggle remains off and margins are ignored
- "paddingIndividual": 1 and "paddingIndividual": { "value": true } -> both throw a validation error: must be boolean (type; matching schema #/allOf/1/properties/layout/items/properties/paddingIndividual/type)
So Power BI validates the boolean correctly, reads the value, but does not honour it during rendering. Has anyone found a workaround, or is this a known bug?
Edit: I also have the same problem with borders for the cards (not the borders for the visual itself, but for the cards within the visual):
My code looks like this:
Hello
this really looks like a Power BI bugAs a workaround, you could try creating one “template” card manually with Individual padding enabled, then duplicate it across reports, or save it inside a PBIX template instead of relying only on the theme JSON. Same for the inner card borders, the outline settings seem partially supported but inconsistent.
Best regards,
Daniele
2 Replies
- DanieleUgoCoppSuper User
Hello
this really looks like a Power BI bugAs a workaround, you could try creating one “template” card manually with Individual padding enabled, then duplicate it across reports, or save it inside a PBIX template instead of relying only on the theme JSON. Same for the inner card borders, the outline settings seem partially supported but inconsistent.
Best regards,
Daniele - v-ssriganeshCommunity Support
Hi SondreHaugen,
Thank you for posting your query in the Microsoft Fabric Community Forum, and thanks to DanieleUgoCopp for sharing valuable insights.
Could you please confirm if your query has been resolved by the provided solutions? This would be helpful for other members who may encounter similar issues.
Thank you for being part of the Microsoft Fabric Community.