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
oliverblane
Helper III
Helper III

Cannot Make Items Dropdown in Slicer Transparent

I have a slicer that I have removed the background from:

oliverblane_0-1639489015873.png

However, when I open the dropdown list I get the following:

oliverblane_1-1639489054690.png

I would like the background of this dropdown to be transparent too, but I cannot see a way to do this - is there a way?

Thanks for your help!

1 ACCEPTED SOLUTION

Hi @oliverblane ,

 

The color in the drop-down box of the slicer is related to the background color of the items. You can choose the desired color in the position below.

 

vkkfmsft_0-1639711950346.png

 

If you want the dropdown box background to be transparent, you need to import a custom theme and set its background to be transparent: "background": { "solid": { "color": "#FFFFFF00"}}
Here are the steps for my test.

  • Create the following json file.
{
	"name": "SlicerTemplate",
	"visualStyles": {
		"slicer": {
			"*": {
				
				"items": [{
					"fontColor": { "solid": { "color": "#FFFFFF"}},
					"background": { "solid": { "color": "#FFFFFF00"}},
					"outline": "None",
					"textSize": 11,
					"fontFamily": "Segoe UI"
                                        
				}]
			}
		}
	}
}

 

  • Import the file into the report.

vkkfmsft_1-1639714781124.png

  • Then you can set the background of the report page, the color of other visuals, the font color of the slicer, etc. as needed. (Note that the slicer's background option must be turned off)

vkkfmsft_2-1639714934763.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

4 REPLIES 4
amitchandak
Super User
Super User

@oliverblane , We usually use a theme in such a case to make sure the background is in line with the background of the page.

Hi @amitchandak, sorry I do not follow. How do I add a theme to the slicer?

So it is not possible to make the dropdown background transparent?

Hi @oliverblane ,

 

The color in the drop-down box of the slicer is related to the background color of the items. You can choose the desired color in the position below.

 

vkkfmsft_0-1639711950346.png

 

If you want the dropdown box background to be transparent, you need to import a custom theme and set its background to be transparent: "background": { "solid": { "color": "#FFFFFF00"}}
Here are the steps for my test.

  • Create the following json file.
{
	"name": "SlicerTemplate",
	"visualStyles": {
		"slicer": {
			"*": {
				
				"items": [{
					"fontColor": { "solid": { "color": "#FFFFFF"}},
					"background": { "solid": { "color": "#FFFFFF00"}},
					"outline": "None",
					"textSize": 11,
					"fontFamily": "Segoe UI"
                                        
				}]
			}
		}
	}
}

 

  • Import the file into the report.

vkkfmsft_1-1639714781124.png

  • Then you can set the background of the report page, the color of other visuals, the font color of the slicer, etc. as needed. (Note that the slicer's background option must be turned off)

vkkfmsft_2-1639714934763.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

 

 

 

 

Thank you so much @v-kkf-msft - it worked perfectly!

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.