Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Eric7
Resolver I
Resolver I

How do I define these padding values in a theme: General - Properties - Padding?

Hi, a new(?) section for "Padding" has appeared in General - Properties - Padding for all visual types:

 

Eric7_0-1678962072687.png

I found this Padding section as I discovered that all my visuals have changed appearence recently without me doing any changes, the title and content have moved leftwards against the left border:

Eric7_1-1678962150651.png

Only when I change one of the 4 padding settings on a visual manually, the visual seems to pick up the default settings.

  • Do I have to manually change these padding settings for all my visuals to make them use the default?
  • Or can I put the padding settings in a theme, hopefully in one location in the theme for all visuals?
  • What is the name of the theme entry for these padding settinings

 

 

4 REPLIES 4
josecherian
Regular Visitor

Padding to all visuals can be added like below. Please refer to my blog post for  detailed instructions.

"visualStyles": {
        "*": {
            "*": {
                "padding":[{
                    "top":20,
                    "bottom":20,
                    "left": 20,
                    "right":20
                 }]
            }
        }

    }

 

MyriamW
Frequent Visitor

I just submitted a new idea regarding this topic: Microsoft Idea (powerbi.com)

Idrissshatila
Super User
Super User

Hello @Eric7 ,

Unfortunatly, there is no option in themes that would let us add padding values to it so we could apply it to all the reports.

 

so probably you should do it manually.

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




I have hundreds of visuals around....

Why do the visuals NOT use the default padding values 0px/5px/5px/5px automatically, without me having to modify one of the padding settings on every visual manually? Seems like a bug or a limitation that should be fixed?

This is how it looks when I click "Reset to default" in the Padding section:

Eric7_1-1678969695165.png

This is how it looks when I adjust TOP padding to 1, and then back to 0:

Eric7_0-1678969069030.png

You see that now all 4 padding settings have been set to the ones showing in the Padding section.

 

 

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.