<?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 Change the color of ArcGISLayerList header background? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-the-color-of-arcgislayerlist-header/m-p/1564885#M86188</link>
    <description>&lt;P&gt;We are using an ArcGISLayerList widget which uses calcite-flow / calcite-flow-item under the hood with a calcite-panel in the calcite-flow-item.&lt;/P&gt;&lt;P&gt;I would like to change the header background to match our UI:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ColleenDixon_0-1733344707552.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/120903iEA7B8F0C33CB5F7F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ColleenDixon_0-1733344707552.png" alt="ColleenDixon_0-1733344707552.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The problem I am running into is:&lt;/P&gt;&lt;P&gt;1. header is inside the shadowDom so I can't directly style this through CSS&lt;/P&gt;&lt;P&gt;2. The var used for the header background is the same var used for the entire background&lt;/P&gt;&lt;P&gt;I would like it to look like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ColleenDixon_2-1733345832162.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/120905i07EACE74DC0CF861/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ColleenDixon_2-1733345832162.png" alt="ColleenDixon_2-1733345832162.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the header slot nested in several shadow-doms that I cannot penetrate with CSS:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ColleenDixon_1-1733345636260.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/120904i10102B2694AE06E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ColleenDixon_1-1733345636260.png" alt="ColleenDixon_1-1733345636260.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And setting the var --calcite-color-foreground-1 to green gives me this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ColleenDixon_3-1733345995846.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/120906iCB206198441C4FAB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ColleenDixon_3-1733345995846.png" alt="ColleenDixon_3-1733345995846.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am trying to come up with the least hacky solution possible to prevent incurring techical debt when classes and nesting changes, but I am open to any suggestion &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Dec 2024 21:02:20 GMT</pubDate>
    <dc:creator>ColleenDixon</dc:creator>
    <dc:date>2024-12-04T21:02:20Z</dc:date>
    <item>
      <title>Change the color of ArcGISLayerList header background?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-the-color-of-arcgislayerlist-header/m-p/1564885#M86188</link>
      <description>&lt;P&gt;We are using an ArcGISLayerList widget which uses calcite-flow / calcite-flow-item under the hood with a calcite-panel in the calcite-flow-item.&lt;/P&gt;&lt;P&gt;I would like to change the header background to match our UI:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ColleenDixon_0-1733344707552.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/120903iEA7B8F0C33CB5F7F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ColleenDixon_0-1733344707552.png" alt="ColleenDixon_0-1733344707552.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The problem I am running into is:&lt;/P&gt;&lt;P&gt;1. header is inside the shadowDom so I can't directly style this through CSS&lt;/P&gt;&lt;P&gt;2. The var used for the header background is the same var used for the entire background&lt;/P&gt;&lt;P&gt;I would like it to look like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ColleenDixon_2-1733345832162.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/120905i07EACE74DC0CF861/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ColleenDixon_2-1733345832162.png" alt="ColleenDixon_2-1733345832162.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the header slot nested in several shadow-doms that I cannot penetrate with CSS:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ColleenDixon_1-1733345636260.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/120904i10102B2694AE06E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ColleenDixon_1-1733345636260.png" alt="ColleenDixon_1-1733345636260.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And setting the var --calcite-color-foreground-1 to green gives me this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ColleenDixon_3-1733345995846.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/120906iCB206198441C4FAB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ColleenDixon_3-1733345995846.png" alt="ColleenDixon_3-1733345995846.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am trying to come up with the least hacky solution possible to prevent incurring techical debt when classes and nesting changes, but I am open to any suggestion &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 21:02:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-the-color-of-arcgislayerlist-header/m-p/1564885#M86188</guid>
      <dc:creator>ColleenDixon</dc:creator>
      <dc:date>2024-12-04T21:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Change the color of ArcGISLayerList header background?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-the-color-of-arcgislayerlist-header/m-p/1564945#M86193</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7466"&gt;@ColleenDixon&lt;/a&gt;&amp;nbsp;with the introduction of web components into the API situations like these are becoming more common.&amp;nbsp; I came up with this solution but it may have other unintended consequences ( or maybe they will be happy surprises ) because it changes the background color for all calcite-flow elements. Thanks for bringing this up hopefully we can improve the ability to style things in the future.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://codepen.io/sagewall/pen/raBxOLy" target="_blank"&gt;https://codepen.io/sagewall/pen/raBxOLy&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 22:54:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-the-color-of-arcgislayerlist-header/m-p/1564945#M86193</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2024-12-04T22:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Change the color of ArcGISLayerList header background?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-the-color-of-arcgislayerlist-header/m-p/1564975#M86195</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7466"&gt;@ColleenDixon&lt;/a&gt;&amp;nbsp;I made a mistake.&amp;nbsp; That first solution will work next release at 4.32.&amp;nbsp; This is a less elegant solution that would work at 4.31&lt;/P&gt;
&lt;P&gt;&lt;A href="https://codepen.io/sagewall/pen/MYgKaqo" target="_blank"&gt;https://codepen.io/sagewall/pen/MYgKaqo&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 23:42:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-the-color-of-arcgislayerlist-header/m-p/1564975#M86195</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2024-12-04T23:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Change the color of ArcGISLayerList header background?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-the-color-of-arcgislayerlist-header/m-p/1567127#M86224</link>
      <description>&lt;P&gt;That worked for me, thank you!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ColleenDixon_1-1733889193959.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/121390iB22FF9880E71C1C8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ColleenDixon_1-1733889193959.png" alt="ColleenDixon_1-1733889193959.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Did have some unintended consequences a few other places like the info window but I can try and work around those&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ColleenDixon_2-1733889273730.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/121391i067F5FE2B566E7B0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ColleenDixon_2-1733889273730.png" alt="ColleenDixon_2-1733889273730.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 03:54:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-the-color-of-arcgislayerlist-header/m-p/1567127#M86224</guid>
      <dc:creator>ColleenDixon</dc:creator>
      <dc:date>2024-12-11T03:54:46Z</dc:date>
    </item>
  </channel>
</rss>

