<?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 Changing Font Size and Font Weight of Popup Text in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-font-size-and-font-weight-of-popup-text/m-p/1128739#M75681</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you wanted to increase the &lt;FONT face="andale mono,times"&gt;font-size&lt;/FONT&gt; and &lt;FONT face="andale mono,times"&gt;font-weight&lt;/FONT&gt; of popup text in the &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/intro-popup/" target="_self"&gt;Intro to popups&lt;/A&gt; example, how would you do that?&lt;/P&gt;&lt;P&gt;I am not in love with what I can get to work:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;inline styles&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="andale mono,times"&gt;!important&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;maybe writing my own widget theme?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;As a result, I am having a &lt;EM&gt;there must be a better/smarter way&lt;/EM&gt; moment. &amp;lt;g&amp;gt; It seems unlikely that I am meant to work this way for this simple kind of change, but I still have a lot to learn about working with the API.&lt;/P&gt;&lt;P&gt;If you watched the &lt;A href="https://www.youtube.com/watch?v=g7KOBONZeb4" target="_blank" rel="noopener"&gt;ArcGIS API for Javascript&amp;amp;colon; Better UX with Popups&lt;/A&gt; video (March 2021), you might think you can use a browser inspector to figure out targeting like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;.esri-popup__content {
	font-size: 14px;
	font-weight: 500;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That does not work (for me) outside of playing with CSS in the inspector. And if you think that approach&amp;nbsp;&lt;EM&gt;should&lt;/EM&gt; work, I invite you to try it in CodePen or similar and see what happens.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If I am missing something, I would be interested to know. Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 23 Dec 2021 19:52:50 GMT</pubDate>
    <dc:creator>IfThenTim</dc:creator>
    <dc:date>2021-12-23T19:52:50Z</dc:date>
    <item>
      <title>Changing Font Size and Font Weight of Popup Text</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-font-size-and-font-weight-of-popup-text/m-p/1128739#M75681</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you wanted to increase the &lt;FONT face="andale mono,times"&gt;font-size&lt;/FONT&gt; and &lt;FONT face="andale mono,times"&gt;font-weight&lt;/FONT&gt; of popup text in the &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/intro-popup/" target="_self"&gt;Intro to popups&lt;/A&gt; example, how would you do that?&lt;/P&gt;&lt;P&gt;I am not in love with what I can get to work:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;inline styles&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="andale mono,times"&gt;!important&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;maybe writing my own widget theme?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;As a result, I am having a &lt;EM&gt;there must be a better/smarter way&lt;/EM&gt; moment. &amp;lt;g&amp;gt; It seems unlikely that I am meant to work this way for this simple kind of change, but I still have a lot to learn about working with the API.&lt;/P&gt;&lt;P&gt;If you watched the &lt;A href="https://www.youtube.com/watch?v=g7KOBONZeb4" target="_blank" rel="noopener"&gt;ArcGIS API for Javascript&amp;amp;colon; Better UX with Popups&lt;/A&gt; video (March 2021), you might think you can use a browser inspector to figure out targeting like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;.esri-popup__content {
	font-size: 14px;
	font-weight: 500;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That does not work (for me) outside of playing with CSS in the inspector. And if you think that approach&amp;nbsp;&lt;EM&gt;should&lt;/EM&gt; work, I invite you to try it in CodePen or similar and see what happens.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If I am missing something, I would be interested to know. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 19:52:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-font-size-and-font-weight-of-popup-text/m-p/1128739#M75681</guid>
      <dc:creator>IfThenTim</dc:creator>
      <dc:date>2021-12-23T19:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Font Size and Font Weight of Popup Text</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-font-size-and-font-weight-of-popup-text/m-p/1128742#M75682</link>
      <description>&lt;P&gt;You can get more specific. with the css. This works.&lt;/P&gt;&lt;LI-CODE lang="css"&gt;article.esri-popup__content {
	font-size: 14px;
	font-weight: 500;
}&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 23 Dec 2021 20:03:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-font-size-and-font-weight-of-popup-text/m-p/1128742#M75682</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-12-23T20:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Font Size and Font Weight of Popup Text</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-font-size-and-font-weight-of-popup-text/m-p/1129087#M75707</link>
      <description>&lt;P&gt;Thank you for your assistance.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Dec 2021 16:51:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-font-size-and-font-weight-of-popup-text/m-p/1129087#M75707</guid>
      <dc:creator>IfThenTim</dc:creator>
      <dc:date>2021-12-28T16:51:06Z</dc:date>
    </item>
  </channel>
</rss>

