<?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: Popup button focus color in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-button-focus-color/m-p/1379833#M83607</link>
    <description>&lt;P&gt;That works for my example. I have a little more digging to do for the actual Angular implementation, but we can call this resolved. Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 08 Feb 2024 17:27:39 GMT</pubDate>
    <dc:creator>Jeff-Reinhart</dc:creator>
    <dc:date>2024-02-08T17:27:39Z</dc:date>
    <item>
      <title>Popup button focus color</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-button-focus-color/m-p/1379690#M83604</link>
      <description>&lt;P&gt;How do I get the popup buttons to have the same outline color on focus using CSS only? Using version 4.28.&lt;/P&gt;&lt;P&gt;I was able to get the Dock button and the Zoom To button to a custom color on focus using:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;calcite-action {
  --calcite-ui-focus-color: red;
}&lt;/LI-CODE&gt;&lt;P&gt;However, the Collapse and Close buttons are not affected.&lt;/P&gt;&lt;P&gt;Please see &lt;A href="https://codepen.io/jeffreinhart/pen/NWJLbdm" target="_self"&gt;this codepen&lt;/A&gt; for example. When you click the map, the popup will appear and the title will be highlighted. Press the tab key to get to the Dock, Collapse, Close, and Zoom To. Dock and Zoom To will be red, Collapse and Close will be the stock blue.&lt;/P&gt;&lt;P&gt;I have tried multiple different selectors to style these buttons on focus but have been unsuccessful. I noticed that Dock and Zoom To are not in a shadow DOM (at least their calcite-action parents are not) while Collapse and Close are buried under two shadow roots each. I suspect this is the reason for the difficulty.&lt;/P&gt;&lt;P&gt;I have read&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6522"&gt;@JoelBennett&lt;/a&gt;'s post &lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-28-popup-styling-not-working/m-p/1362431" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;and while that is some excellent work, it seems ridiculous to need JavaScript to get this simple styling done.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2024 15:12:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-button-focus-color/m-p/1379690#M83604</guid>
      <dc:creator>Jeff-Reinhart</dc:creator>
      <dc:date>2024-02-08T15:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Popup button focus color</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-button-focus-color/m-p/1379786#M83606</link>
      <description>&lt;P&gt;Try updating it from the :root of your css&lt;/P&gt;&lt;LI-CODE lang="css"&gt;:root {
    --calcite-ui-focus-color: red;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;That should do it, but it's global for everywhere that token is used, so keep that in mind.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2024 16:51:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-button-focus-color/m-p/1379786#M83606</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2024-02-08T16:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Popup button focus color</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-button-focus-color/m-p/1379833#M83607</link>
      <description>&lt;P&gt;That works for my example. I have a little more digging to do for the actual Angular implementation, but we can call this resolved. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2024 17:27:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-button-focus-color/m-p/1379833#M83607</guid>
      <dc:creator>Jeff-Reinhart</dc:creator>
      <dc:date>2024-02-08T17:27:39Z</dc:date>
    </item>
  </channel>
</rss>

