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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Anonymous
Not applicable

JSON for Rounded corners of actionButton

Hi all,

 

I have looked on other posts on this forum but I can't find a solution. 

 

I'm trying to set the Rounded corners property of a button to 15px on my JSON theme. I've tried:

 

1. 

"border": [{
                "show": true,
                "radius": 10,
                "color": { "solid": { "color": "#00FF00" } }
            }]

 but this sets the property of the visual, instead of the button.

2. 

"roundEdge": {
                            "type": "integer",
                            "title": "Round edges"
                          }
As found in the PowerBISchema, but after a successful theme import into Power BI this doesn't seem to affect anything when the button's properties are reset to default. 
 
Below is my JSON for the action button, how can I add a property to control the rounded corners of the button?
 
"actionButton":{"*":
  {
  "border":
    [{
      "show":false
    }],
  "visualHeader":
    [{
      "show":false
    }],
  "background":
    [{
      "show":false
    }],
  "title":
    [{
      "show":false
    }],
  "outline":
    [
      {
        "show":true
      },
      {
        "$id": "default",
        "weight":1
      },
      {
        "$id": "hover",
        "weight":1
      },
      {
        "$id": "selected",
        "weight":1
      }
    ],
  "fill":
    [
      {
        "show":true
      },
      {
        "$id": "default",
        "transparency": 0,
        "fillColor": {"solid":{"color":"#FFFFFF"}}
      },
      {
        "$id": "hover",
        "transparency": 0,
        "fillColor": {"solid":{"color":"#00BED7"}}
      },
      {
        "$id": "selected",
        "transparency": 0,
        "fillColor": {"solid":{"color":"#BE0D30"}}
      }
    ],
  "icon":
    [
      {
      "show":true
      },
      {
        "$id": "default",
        "lineColor":{"solid":{"color":"#212721"}}
      },
      {
        "$id": "hover",
        "lineColor":{"solid":{"color":"#FFFFFF"}}
      },
      {
        "$id": "selected",
        "lineColor":{"solid":{"color":"#FFFFFF"}}
      }
    ],
  "text":
    [
      {
        "show":true
      },
      {
        "$id": "default",
        "fontSize": 14,
        "fontColor":{"solid":{"color":"#212721"}}
      },
      {
        "$id": "hover",
        "fontSize": 14,
        "fontColor":{"solid":{"color":"#FFFFFF"}}
      },
      {
        "$id": "selected",
        "fontSize": 14,
        "fontColor":{"solid":{"color":"#FFFFFF"}}
      }
    ]
  }}
 

Thanks in advance.

1 ACCEPTED SOLUTION
v-yueyunzh-msft
Community Support
Community Support

Hi , @Anonymous 

I test it in my side , you can try to use this:

{
 "name": "a670051504402230c343",

  "visualStyles": {
    "actionButton": {
    
      "*": {
        "background": [
          {
            "show": false
          }
        ],
        "visualHeader": [
          {
            "show": false
          }
        ],
       
        "shape": [
       {
	   "$id": "default",
          "roundEdge": 34
	}
      ]

      }
    }
  }

}

 

vyueyunzhmsft_0-1691638702827.png

 

 

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

View solution in original post

1 REPLY 1
v-yueyunzh-msft
Community Support
Community Support

Hi , @Anonymous 

I test it in my side , you can try to use this:

{
 "name": "a670051504402230c343",

  "visualStyles": {
    "actionButton": {
    
      "*": {
        "background": [
          {
            "show": false
          }
        ],
        "visualHeader": [
          {
            "show": false
          }
        ],
       
        "shape": [
       {
	   "$id": "default",
          "roundEdge": 34
	}
      ]

      }
    }
  }

}

 

vyueyunzhmsft_0-1691638702827.png

 

 

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.