Select to view content in your preferred language

Change layer list border color

1387
2
Jump to solution
06-06-2023 03:39 PM
Labels (2)
LondonWalker
Regular Contributor

I am building a custom layer list widget that also displays the legend in experience builder. For whatever reason, I can't get this gray border to change colors. I am trying to get it white but I can turn every else white except this border, and it occurs between the legend and layer name, the layer names and the group layer name, and the whole layer list. Any ideas on what it might be? I am using a scss style sheet and also changed the container background color inline with the HTML.

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
LanceCole
MVP Regular Contributor

@LondonWalker , 

In your browser utilize the developer tools (F12) to identify which class is assigned the gray color.  You will then need to override that class in your widget CSS.  You can also temporarily override the color in your browser to experiment with the desired effect.  Do note, overriding ESRI CSS may impact other experience builder components.  You can add an additional class to your widget to apply this exclusively.  You may need to utilize the CSS !important Property to force your CSS preference.

For example in the image below, I have temporarily set the backgound-color for .jimu-widget.esri-layer-list.esri-widget.esri-widget--panel to green.

LanceCole_0-1686132009694.png

 

 

View solution in original post

0 Kudos
2 Replies
LanceCole
MVP Regular Contributor

@LondonWalker , 

In your browser utilize the developer tools (F12) to identify which class is assigned the gray color.  You will then need to override that class in your widget CSS.  You can also temporarily override the color in your browser to experiment with the desired effect.  Do note, overriding ESRI CSS may impact other experience builder components.  You can add an additional class to your widget to apply this exclusively.  You may need to utilize the CSS !important Property to force your CSS preference.

For example in the image below, I have temporarily set the backgound-color for .jimu-widget.esri-layer-list.esri-widget.esri-widget--panel to green.

LanceCole_0-1686132009694.png

 

 

0 Kudos
LondonWalker
Regular Contributor

Thank you so much!

0 Kudos