<?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 How do I override the Esri Icon Font (Calcite theme) styles? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-override-the-esri-icon-font-calcite-theme/m-p/1020287#M71510</link>
    <description>&lt;P&gt;When using the&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/guide/esri-icon-font/index.html" target="_self"&gt;Esri Icon Font (Calcite theme)&lt;/A&gt;, I am attempting to override the font styles, however they do not seem to be applied. A working example is available here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackblitz.com/edit/web-platform-6q9noc" target="_blank"&gt;https://stackblitz.com/edit/web-platform-6q9noc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For example, if I set the color or the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Font.html#weight" target="_self"&gt;font weight property&lt;/A&gt;, I do not see that change applied in the map:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;.esri-icon-check-mark&lt;/SPAN&gt; &lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; color:&lt;/SPAN&gt; &lt;SPAN&gt;blue&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; weight:&lt;/SPAN&gt; &lt;SPAN&gt;"bold"&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;What is the correct way to override these styles&amp;nbsp;when using&amp;nbsp;the Esri icon fonts as a graphic's symbol?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 26 Jan 2021 23:12:12 GMT</pubDate>
    <dc:creator>mfcallahan</dc:creator>
    <dc:date>2021-01-26T23:12:12Z</dc:date>
    <item>
      <title>How do I override the Esri Icon Font (Calcite theme) styles?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-override-the-esri-icon-font-calcite-theme/m-p/1020287#M71510</link>
      <description>&lt;P&gt;When using the&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/guide/esri-icon-font/index.html" target="_self"&gt;Esri Icon Font (Calcite theme)&lt;/A&gt;, I am attempting to override the font styles, however they do not seem to be applied. A working example is available here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackblitz.com/edit/web-platform-6q9noc" target="_blank"&gt;https://stackblitz.com/edit/web-platform-6q9noc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For example, if I set the color or the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Font.html#weight" target="_self"&gt;font weight property&lt;/A&gt;, I do not see that change applied in the map:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;.esri-icon-check-mark&lt;/SPAN&gt; &lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; color:&lt;/SPAN&gt; &lt;SPAN&gt;blue&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; weight:&lt;/SPAN&gt; &lt;SPAN&gt;"bold"&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;What is the correct way to override these styles&amp;nbsp;when using&amp;nbsp;the Esri icon fonts as a graphic's symbol?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 26 Jan 2021 23:12:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-override-the-esri-icon-font-calcite-theme/m-p/1020287#M71510</guid>
      <dc:creator>mfcallahan</dc:creator>
      <dc:date>2021-01-26T23:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I override the Esri Icon Font (Calcite theme) styles?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-override-the-esri-icon-font-calcite-theme/m-p/1020288#M71511</link>
      <description>&lt;P&gt;So, this isn't what I'd consider a go-to, as many consider it improper, but if there aren't any other tips I'd consider adding !important&lt;/P&gt;&lt;P&gt;I haven't always had success with this&amp;nbsp;Esri items, but that's one typical option for overriding CSS. For example:&lt;/P&gt;&lt;P&gt;p {&lt;BR /&gt;&amp;nbsp; color: red !important;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;I'm no expert though, so if anyone else has input, theirs may be best to follow first!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 23:19:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-override-the-esri-icon-font-calcite-theme/m-p/1020288#M71511</guid>
      <dc:creator>zaphod</dc:creator>
      <dc:date>2021-01-26T23:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I override the Esri Icon Font (Calcite theme) styles?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-override-the-esri-icon-font-calcite-theme/m-p/1020508#M71515</link>
      <description>&lt;P&gt;You can set the color but I don't think font weight applies to SVG icons. In your sample, why can't you change the color property on line 82 where you define the&amp;nbsp;textSymbol for drawing the point? Also, if you are adding the icon with your own html, you can &lt;A href="https://esri.github.io/calcite-web/documentation/icons/#svg-colors" target="_self"&gt;change the class name to change the color&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 15:10:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-override-the-esri-icon-font-calcite-theme/m-p/1020508#M71515</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2021-01-27T15:10:54Z</dc:date>
    </item>
  </channel>
</rss>

