<?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: Change the Color of Map Button in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-the-color-of-map-button/m-p/1582636#M86471</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Thank you, that worked. However, it's unclear why the buttons need to be addressed differently. The actions only work for the expand button.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="js_api2.png" style="width: 435px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/124763i43FE4D271A1FDD48/image-dimensions/435x159?v=v2" width="435" height="159" role="button" title="js_api2.png" alt="js_api2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;      calcite-list,
      calcite-button { 
        --calcite-color-text-3: #7e0b6c; /* NORMAL */
        --calcite-color-text-1: #33012a; /* HOVER */
      }

      calcite-action {
          --calcite-action-text-color: #9E007E;
          --calcite-action-text-color-pressed: #33012a;
      } &lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 06 Feb 2025 12:36:20 GMT</pubDate>
    <dc:creator>AlexWie</dc:creator>
    <dc:date>2025-02-06T12:36:20Z</dc:date>
    <item>
      <title>Change the Color of Map Button</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-the-color-of-map-button/m-p/1582139#M86461</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Good morning, I would like to customize the colors of the standard buttons on the map. However, only part of the buttons are being changed. Does anyone have an idea? Best regards, Alex&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="js_api.png" style="width: 412px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/124661iAF28E4BEC10C442C/image-dimensions/412x162?v=v2" width="412" height="162" role="button" title="js_api.png" alt="js_api.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;meta charset="utf-8" /&amp;gt;
    &amp;lt;meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no" /&amp;gt;
    &amp;lt;title&amp;gt;...&amp;lt;/title&amp;gt;
    &amp;lt;!-- Load Calcite components from CDN --&amp;gt;
    &amp;lt;link rel="stylesheet" type="text/css" href="https://js.arcgis.com/calcite-components/2.13.2/calcite.css" /&amp;gt;
    &amp;lt;script type="module" src="https://js.arcgis.com/calcite-components/2.13.2/calcite.esm.js"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;!-- Load the ArcGIS Maps SDK for JavaScript from CDN --&amp;gt;
    &amp;lt;link rel="stylesheet" href="https://js.arcgis.com/4.31/esri/themes/light/main.css" /&amp;gt;
    &amp;lt;script src="https://js.arcgis.com/4.31/"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;!-- Load Map components from CDN--&amp;gt;
    &amp;lt;script type="module" src="https://js.arcgis.com/map-components/4.31/arcgis-map-components.esm.js"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;style&amp;gt;
      html,
      body {
          padding: 0;
          margin: 0;
          height: 100%;
          width: 100%;
      }    
      calcite-list, /* layer list button */     
      calcite-button { /* standard button */
        --calcite-color-text-1: #bd11a3; /* HOVER */
        --calcite-color-text-3: #bd11a3; /* NORMAL */
        /* --calcite-color-text-2: #bd11a3; */ /* font layer */
      }
    &amp;lt;/style&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt; 
    &amp;lt;arcgis-map item-id="21d542a69db3442f808d92e2618f1390"&amp;gt; 
      &amp;lt;arcgis-home position="top-left" &amp;gt;&amp;lt;/arcgis-home&amp;gt;
      &amp;lt;arcgis-zoom position="top-left" &amp;gt;&amp;lt;/arcgis-zoom&amp;gt;
      &amp;lt;arcgis-expand position="top-right" mode="floating"&amp;gt;
        &amp;lt;arcgis-search /&amp;gt;
      &amp;lt;/arcgis-expand&amp;gt;
      &amp;lt;arcgis-expand position="top-right" mode="floating"&amp;gt;
        &amp;lt;arcgis-layer-list /&amp;gt;
      &amp;lt;/arcgis-expand&amp;gt;
      &amp;lt;arcgis-expand position="top-right" mode="floating"&amp;gt;
        &amp;lt;arcgis-legend /&amp;gt;
      &amp;lt;/arcgis-expand&amp;gt;
      &amp;lt;arcgis-scale-bar position="bottom-left" bar-style="line" unit="metric"&amp;gt;&amp;lt;/arcgis-scale-bar&amp;gt;
    &amp;lt;/arcgis-map&amp;gt; 
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 07:08:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-the-color-of-map-button/m-p/1582139#M86461</guid>
      <dc:creator>AlexWie</dc:creator>
      <dc:date>2025-02-05T07:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change the Color of Map Button</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-the-color-of-map-button/m-p/1582212#M86463</link>
      <description>&lt;P&gt;Hello, I think you need to add&amp;nbsp;calcite-action to your list of styled elements&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 14:05:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-the-color-of-map-button/m-p/1582212#M86463</guid>
      <dc:creator>LittleTurtle</dc:creator>
      <dc:date>2025-02-05T14:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Change the Color of Map Button</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-the-color-of-map-button/m-p/1582636#M86471</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you, that worked. However, it's unclear why the buttons need to be addressed differently. The actions only work for the expand button.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="js_api2.png" style="width: 435px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/124763i43FE4D271A1FDD48/image-dimensions/435x159?v=v2" width="435" height="159" role="button" title="js_api2.png" alt="js_api2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;      calcite-list,
      calcite-button { 
        --calcite-color-text-3: #7e0b6c; /* NORMAL */
        --calcite-color-text-1: #33012a; /* HOVER */
      }

      calcite-action {
          --calcite-action-text-color: #9E007E;
          --calcite-action-text-color-pressed: #33012a;
      } &lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 06 Feb 2025 12:36:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-the-color-of-map-button/m-p/1582636#M86471</guid>
      <dc:creator>AlexWie</dc:creator>
      <dc:date>2025-02-06T12:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Change the Color of Map Button</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-the-color-of-map-button/m-p/1583899#M86508</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Another question, same topic... I would like to change the color of the button, not the color of the text. It works for the PRESSED and HOVER states, but not for the normal state. Any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;      calcite-button { 
        --calcite-color-foreground-1: #9E007E; /* PRESSED */ 
        --calcite-color-foreground-2: #3d9e00; /* HOVER */
        --calcite-color-foreground-3: #f3c212; /* NOTHING ??? */      
        --calcite-color-text-1: #fffdfd;
        --calcite-color-text-3: #212121;
      }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jsapi5.png" style="width: 280px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/125060iF40F71B594A29A23/image-size/large?v=v2&amp;amp;px=999" role="button" title="jsapi5.png" alt="jsapi5.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 06:46:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-the-color-of-map-button/m-p/1583899#M86508</guid>
      <dc:creator>AlexWie</dc:creator>
      <dc:date>2025-02-11T06:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Change the Color of Map Button</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-the-color-of-map-button/m-p/1583915#M86509</link>
      <description>&lt;P&gt;I have the solution...&lt;/P&gt;&lt;LI-CODE lang="css"&gt;      .custom-home-widget .esri-widget--button {
        color: white !important;
        --calcite-color-foreground-1: #9E007E; /* PRESSED */ 
        --calcite-color-foreground-2: #3d9e00; /* HOVER */
        --calcite-color-foreground-3: #f3c212; /* NORMAL */      
        --calcite-color-text-1: #fffdfd;
        --calcite-color-text-3: #212121;
      }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  // Home Widget    
  var homeWidget = new Home({
    view: view
  });
  view.ui.add(homeWidget, "top-left");
  homeWidget.container.classList.add("custom-home-widget");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 08:37:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-the-color-of-map-button/m-p/1583915#M86509</guid>
      <dc:creator>AlexWie</dc:creator>
      <dc:date>2025-02-11T08:37:40Z</dc:date>
    </item>
  </channel>
</rss>

