Select to view content in your preferred language

Alter colour of MapView border when focused

3293
12
Jump to solution
09-14-2023 12:07 AM
Flookfinders
Occasional Contributor

With version 4.27.6 of the API there is now a border displayed around the outside of the MapView. Presently this is black, but for the rest of my application we are using blue, so I am wondering how I can change the colour of this focus border to bring it line with the style used in the rest of our application? I cannot find any property that allows me to do this.

Tags (3)
0 Kudos
12 Replies
4andy
by
Occasional Contributor

Okay, thanks for looking into it @Sage_Wall.

0 Kudos
Sage_Wall
Esri Regular Contributor

Hi @4andy , 

The devs created a new CSS Variable for the map component for the 5.0 release.  You should be able to change the focus color on the map with it when 5.0 is released.

https://codepen.io/sagewall/pen/wBGppzG

  arcgis-map {
    --arcgis-view-outline-color: #ff0000;
  }


 

Flookfinders
Occasional Contributor

That has sorted things for me, thanks

0 Kudos