<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Alter colour of MapView border when focused in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-colour-of-mapview-border-when-focused/m-p/1329478#M82235</link>
    <description>&lt;P&gt;I have tried adding the above code in various places within my application without any success.&amp;nbsp; Would it make any difference that I am developing a React application?&lt;/P&gt;</description>
    <pubDate>Mon, 18 Sep 2023 07:43:50 GMT</pubDate>
    <dc:creator>Flookfinders</dc:creator>
    <dc:date>2023-09-18T07:43:50Z</dc:date>
    <item>
      <title>Alter colour of MapView border when focused</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-colour-of-mapview-border-when-focused/m-p/1328581#M82218</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 07:07:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-colour-of-mapview-border-when-focused/m-p/1328581#M82218</guid>
      <dc:creator>Flookfinders</dc:creator>
      <dc:date>2023-09-14T07:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Alter colour of MapView border when focused</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-colour-of-mapview-border-when-focused/m-p/1328829#M82226</link>
      <description>&lt;P&gt;You will need to add something like this somewhere below the tag in which you import the css theme file:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;style type="text/css"&amp;gt;
.esri-view .esri-view-surface:focus::after {
    outline-color: #0000FF;
}
&amp;lt;/style&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 14 Sep 2023 18:21:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-colour-of-mapview-border-when-focused/m-p/1328829#M82226</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-09-14T18:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Alter colour of MapView border when focused</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-colour-of-mapview-border-when-focused/m-p/1329478#M82235</link>
      <description>&lt;P&gt;I have tried adding the above code in various places within my application without any success.&amp;nbsp; Would it make any difference that I am developing a React application?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 07:43:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-colour-of-mapview-border-when-focused/m-p/1329478#M82235</guid>
      <dc:creator>Flookfinders</dc:creator>
      <dc:date>2023-09-18T07:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Alter colour of MapView border when focused</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-colour-of-mapview-border-when-focused/m-p/1329722#M82242</link>
      <description>&lt;P&gt;It would definitely make a difference if a shadow DOM is involved, but I haven't worked with React to know if that's the case in your situation or not.&amp;nbsp; There's more info on that kind of thing in &lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/vertical-scrollbar-in-popup-always-showing/m-p/1306736/highlight/true#M81641" target="_self"&gt;this post&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 17:15:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-colour-of-mapview-border-when-focused/m-p/1329722#M82242</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-09-18T17:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Alter colour of MapView border when focused</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-colour-of-mapview-border-when-focused/m-p/1334442#M82377</link>
      <description>&lt;P&gt;In React you can create a 'index.css' file and import it into your application's entrypoint like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import './index.css'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;inside this file you can add the CSS provided by &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6522"&gt;@JoelBennett&lt;/a&gt;.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;.esri-view .esri-view-surface:focus::after {
    outline-color: #0000FF;
}&lt;/LI-CODE&gt;&lt;P&gt;Alternatively, you can link the CSS-file to your primary HTML-file like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;!doctype html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
  &amp;lt;head&amp;gt;
    ...
    &amp;lt;link href="path-to-your-index.css" rel="stylesheet" /&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
    ...
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;whichever method you employ, you must ensure that the official Esri CSS file is imported into your project before you modify it with your own CSS.&lt;/P&gt;&lt;P&gt;Hope this helps!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 08:14:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-colour-of-mapview-border-when-focused/m-p/1334442#M82377</guid>
      <dc:creator>Martin_B</dc:creator>
      <dc:date>2023-10-03T08:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Alter colour of MapView border when focused</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-colour-of-mapview-border-when-focused/m-p/1334444#M82378</link>
      <description>&lt;P&gt;That has sorted things for me, thanks&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 08:23:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-colour-of-mapview-border-when-focused/m-p/1334444#M82378</guid>
      <dc:creator>Flookfinders</dc:creator>
      <dc:date>2023-10-03T08:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Alter colour of MapView border when focused</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-colour-of-mapview-border-when-focused/m-p/1674719#M88008</link>
      <description>&lt;P&gt;This was working at API version 4.33 but at 4.34 it doesn't seem to be. I tried a few things but nothing seemed to work. Anyone have any ideas on how to change the color at 4.34 when using map components? Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Dec 2025 16:56:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-colour-of-mapview-border-when-focused/m-p/1674719#M88008</guid>
      <dc:creator>4andy</dc:creator>
      <dc:date>2025-12-23T16:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Alter colour of MapView border when focused</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-colour-of-mapview-border-when-focused/m-p/1674736#M88009</link>
      <description>&lt;P&gt;I think the focus color is controlled by the browser, but you should be able to overwrite it with something like this&lt;/P&gt;&lt;LI-CODE lang="css"&gt;arcgis-map:focus {
    border: 5px solid #FF0000;
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sage_Wall_0-1766510766865.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/146026i833F5402E56AADCF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sage_Wall_0-1766510766865.png" alt="Sage_Wall_0-1766510766865.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Dec 2025 17:26:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-colour-of-mapview-border-when-focused/m-p/1674736#M88009</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2025-12-23T17:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Alter colour of MapView border when focused</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-colour-of-mapview-border-when-focused/m-p/1674750#M88010</link>
      <description>&lt;P&gt;That seems to add to it actually - I get both borders.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4andy_0-1766514377385.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/146027i1F0D22CB09D33758/image-size/medium?v=v2&amp;amp;px=400" role="button" title="4andy_0-1766514377385.png" alt="4andy_0-1766514377385.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can see the css outline colors and style and when I change it in the browser dev tools it changes the right thing but I can't seem to overwrite those properties in the css file itself and have them applied for some reason.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4andy_1-1766514726217.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/146028i3496430960FBA262/image-size/medium?v=v2&amp;amp;px=400" role="button" title="4andy_1-1766514726217.png" alt="4andy_1-1766514726217.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Dec 2025 18:32:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-colour-of-mapview-border-when-focused/m-p/1674750#M88010</guid>
      <dc:creator>4andy</dc:creator>
      <dc:date>2025-12-23T18:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Alter colour of MapView border when focused</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-colour-of-mapview-border-when-focused/m-p/1674766#M88011</link>
      <description>&lt;P&gt;yeah your right, my apologies. There might be something in the shadow-dom of the component.&amp;nbsp; I'll ask around and see if I can get you an answer.&amp;nbsp; I haven't been able to figure it out either.&amp;nbsp; If I just add the :focus rule and then select the focus state in the dev tools it seems to work, but if I actually click on the map element I see the same thing you do with the interior blue border still present&lt;/P&gt;</description>
      <pubDate>Tue, 23 Dec 2025 19:42:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-colour-of-mapview-border-when-focused/m-p/1674766#M88011</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2025-12-23T19:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Alter colour of MapView border when focused</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-colour-of-mapview-border-when-focused/m-p/1674780#M88012</link>
      <description>&lt;P&gt;There may be a big here&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/478323"&gt;@4andy&lt;/a&gt;&amp;nbsp;you should be able to do it with a css variable, but it's not working as intended for the map.&amp;nbsp; It is working for other components inside the map however.&amp;nbsp; Still looking into this but a lot of people are out for the holidays at this time.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/sagewall/pen/wBWvdmQ?editors=1010" target="_blank"&gt;https://codepen.io/sagewall/pen/wBWvdmQ?editors=1010&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you wanted to do everything&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;  :root {
    --calcite-color-focus: #ff0000;
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A single component (isn't working for arcgis-map as far as I can tell):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;arcgis-zoom {
  --calcite-color-focus: #ff0000;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Sorry for the previous bad advice and hopefully we can get the bug fixed.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Dec 2025 20:26:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-colour-of-mapview-border-when-focused/m-p/1674780#M88012</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2025-12-23T20:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Alter colour of MapView border when focused</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-colour-of-mapview-border-when-focused/m-p/1674783#M88013</link>
      <description>&lt;P&gt;Okay, thanks for looking into it&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/507049"&gt;@Sage_Wall&lt;/a&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Dec 2025 20:31:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-colour-of-mapview-border-when-focused/m-p/1674783#M88013</guid>
      <dc:creator>4andy</dc:creator>
      <dc:date>2025-12-23T20:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Alter colour of MapView border when focused</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-colour-of-mapview-border-when-focused/m-p/1675861#M88030</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/478323"&gt;@4andy&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;The devs created a new CSS Variable for the map component for the 5.0 release.&amp;nbsp; You should be able to change the focus color on the map with it when 5.0 is released.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/sagewall/pen/wBGppzG" target="_blank"&gt;https://codepen.io/sagewall/pen/wBGppzG&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;  arcgis-map {
    --arcgis-view-outline-color: #ff0000;
  }&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 14:31:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-colour-of-mapview-border-when-focused/m-p/1675861#M88030</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2026-01-05T14:31:33Z</dc:date>
    </item>
  </channel>
</rss>

