Is there a way to override the opacity of a symbol displayed in the Legend widget without altering the layer's opacity? A partially transparent layer's symbol is darkened significantly by a dark widget background when displayed as a symbol in the Legend with our branded dark background.
Thanks!
Here is a working codepen example. I have the timeout set really high so you will need to wait around 15-30 seconds to see the opacity change on the 4th item in the legend.
https://codepen.io/mbdriscoll/pen/XWQWexm
Thank you for the suggestion and example!
You need to change the opacity of the class esri-legend__symbol.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.