<?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: Navigation User Avatar Background Color and CSP in Calcite Design System Questions</title>
    <link>https://community.esri.com/t5/calcite-design-system-questions/navigation-user-avatar-background-color-and-csp/m-p/1625457#M839</link>
    <description>&lt;P&gt;Thanks for reaching out,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/84980"&gt;@DavidJantz&lt;/a&gt;!&lt;/P&gt;&lt;P&gt;With regards to the CSS variable, added an enhancement for the team to consider a more streamlined solution with #&lt;A href="https://github.com/Esri/calcite-design-system/issues/12371" target="_self"&gt;12371&lt;/A&gt; by adding a new CSS variable/component token for Navigation User.&lt;/P&gt;&lt;P&gt;For the second part of your comment above, this is a great topic to submit a case to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.esri.com/contact?rsource=%2Fcontact&amp;amp;t=5#c=us&amp;amp;t=5" rel="nofollow" target="_blank"&gt;Esri Support&lt;/A&gt;, where you can report bugs in released versions of Calcite and request enhancements. Submitted cases help you troubleshoot issues, provide tracking progress of bugs, and help build cases to help prioritize enhancements requests.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/my-esri-blog/why-can-t-i-submit-cases-or-how-i-became-an/ba-p/888179" rel="nofollow" target="_blank"&gt;Learn more about submitting cases&lt;/A&gt;, including how to become an authorized caller to report an issue.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jun 2025 19:33:17 GMT</pubDate>
    <dc:creator>KittyHurley</dc:creator>
    <dc:date>2025-06-20T19:33:17Z</dc:date>
    <item>
      <title>Navigation User Avatar Background Color and CSP</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/navigation-user-avatar-background-color-and-csp/m-p/1623616#M834</link>
      <description>&lt;P&gt;First, the Avatar component has a&amp;nbsp;&lt;SPAN&gt;--calcite-avatar-background-color style option. This is not documented as an option for Navigation User but it does seem to work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Second,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;I'm having trouble with CSP's&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;style-src&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;directive when using the Navigation User component, although this seems to apply equally to Avatar too. These&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;dynamically set an inline style for background colors.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;The violation occurs because the component uses&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;element.setAttribute('style', 'background-color:var(--calcite-avatar-background-color, hsl(63, 60%, 90%));')&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to apply the style. I assume the default value is randomly generated based on the username property.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;This then requires using&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;'unsafe-inline' or&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;hashes for specific style strings (like the example above, and for empty strings used to clear styles) which isn't preferred.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Can these components be updated to not require inline styles? Or&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;what is the recommended approach for configuring&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;style-src&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in CSP to work smoothly with Calcite's dynamic styling?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 13 Jun 2025 22:43:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/navigation-user-avatar-background-color-and-csp/m-p/1623616#M834</guid>
      <dc:creator>DavidJantz</dc:creator>
      <dc:date>2025-06-13T22:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Navigation User Avatar Background Color and CSP</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/navigation-user-avatar-background-color-and-csp/m-p/1625457#M839</link>
      <description>&lt;P&gt;Thanks for reaching out,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/84980"&gt;@DavidJantz&lt;/a&gt;!&lt;/P&gt;&lt;P&gt;With regards to the CSS variable, added an enhancement for the team to consider a more streamlined solution with #&lt;A href="https://github.com/Esri/calcite-design-system/issues/12371" target="_self"&gt;12371&lt;/A&gt; by adding a new CSS variable/component token for Navigation User.&lt;/P&gt;&lt;P&gt;For the second part of your comment above, this is a great topic to submit a case to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.esri.com/contact?rsource=%2Fcontact&amp;amp;t=5#c=us&amp;amp;t=5" rel="nofollow" target="_blank"&gt;Esri Support&lt;/A&gt;, where you can report bugs in released versions of Calcite and request enhancements. Submitted cases help you troubleshoot issues, provide tracking progress of bugs, and help build cases to help prioritize enhancements requests.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/my-esri-blog/why-can-t-i-submit-cases-or-how-i-became-an/ba-p/888179" rel="nofollow" target="_blank"&gt;Learn more about submitting cases&lt;/A&gt;, including how to become an authorized caller to report an issue.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 19:33:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/navigation-user-avatar-background-color-and-csp/m-p/1625457#M839</guid>
      <dc:creator>KittyHurley</dc:creator>
      <dc:date>2025-06-20T19:33:17Z</dc:date>
    </item>
  </channel>
</rss>

