<?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 Popup Component Title Font Size in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-component-title-font-size/m-p/1718823#M88573</link>
    <description>&lt;P&gt;Hi. For my app, I need control over popups such that some open and close on hover and others on click. Therefore, I have disabled default popup for the view and am creating new popup components like below. Note that I'm intentionally using the component as my understanding is that widgets will be retired soon:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;//Create separate popup components
const hoverPopup = document.createElement("arcgis-popup");
hoverPopup.view = view; 
view.ui.add(hoverPopup);&lt;/LI-CODE&gt;&lt;P&gt;This works nicely. The content is coming from the configured popup in my webmap. But there is one issue: For some reason, the popup title font is very small. This seems like a bug, but I was confident I could override the style and increase the font size for title portion. I'm finding that it's very difficult to do, however due to the style being defined in the shadow dom. Here's how it looks in my app:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZorbaConlen1_0-1785961732376.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/156340i934916B01E1349DD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZorbaConlen1_0-1785961732376.png" alt="ZorbaConlen1_0-1785961732376.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any advice on how to target that title font via css, or another approach?&lt;/P&gt;&lt;P&gt;On a side note, I'm seeing this with other components I have added as well, like panels, layer list, etc. Often the font sizes are very small.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 05 Aug 2026 20:33:06 GMT</pubDate>
    <dc:creator>ZorbaConlen1</dc:creator>
    <dc:date>2026-08-05T20:33:06Z</dc:date>
    <item>
      <title>Popup Component Title Font Size</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-component-title-font-size/m-p/1718823#M88573</link>
      <description>&lt;P&gt;Hi. For my app, I need control over popups such that some open and close on hover and others on click. Therefore, I have disabled default popup for the view and am creating new popup components like below. Note that I'm intentionally using the component as my understanding is that widgets will be retired soon:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;//Create separate popup components
const hoverPopup = document.createElement("arcgis-popup");
hoverPopup.view = view; 
view.ui.add(hoverPopup);&lt;/LI-CODE&gt;&lt;P&gt;This works nicely. The content is coming from the configured popup in my webmap. But there is one issue: For some reason, the popup title font is very small. This seems like a bug, but I was confident I could override the style and increase the font size for title portion. I'm finding that it's very difficult to do, however due to the style being defined in the shadow dom. Here's how it looks in my app:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZorbaConlen1_0-1785961732376.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/156340i934916B01E1349DD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZorbaConlen1_0-1785961732376.png" alt="ZorbaConlen1_0-1785961732376.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any advice on how to target that title font via css, or another approach?&lt;/P&gt;&lt;P&gt;On a side note, I'm seeing this with other components I have added as well, like panels, layer list, etc. Often the font sizes are very small.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2026 20:33:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-component-title-font-size/m-p/1718823#M88573</guid>
      <dc:creator>ZorbaConlen1</dc:creator>
      <dc:date>2026-08-05T20:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Component Title Font Size</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-component-title-font-size/m-p/1718850#M88574</link>
      <description>&lt;P&gt;The popup component is only meant to be used in a map or scene component. If you add it to the view.ui, the css won't&amp;nbsp; target things correctly, as you can tell in your image, and some other odd stuff might happen too. Maybe you can use it like that, but not recommended.&lt;/P&gt;&lt;P&gt;If you want to have your own popup comp with your app, you can do it like this.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  &amp;lt;arcgis-map item-id="45725ba7d9fb47a0925398919b13d1fa" popup-disabled&amp;gt;
  &amp;lt;/arcgis-map&amp;gt;
  &amp;lt;script type="module"&amp;gt;
    const mapElement = document.querySelector("arcgis-map");
    const popupElement = document.createElement("arcgis-popup");
    popupElement.slot = "popup";
    mapElement.append(popupElement);
    
    mapElement.addEventListener("arcgisViewClick", async (event) =&amp;gt; {
      const { results } = await mapElement.hitTest(event.detail);
      const features = [];
      for (let result of results) {
        // avoid basemap results, it's just empty
        if (result.layer.type === "feature") {
          features.push(result.graphic);
        }
      }
      
      popupElement.features = features;
      popupElement.location = event.detail.mapPoint;
      popupElement.open = true;
    });
  &amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;demo:&amp;nbsp;&lt;A href="https://codepen.io/odoe/pen/bNeYWRd?editors=1000" target="_blank"&gt;https://codepen.io/odoe/pen/bNeYWRd?editors=1000&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2026 22:20:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-component-title-font-size/m-p/1718850#M88574</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2026-08-05T22:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Component Title Font Size</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-component-title-font-size/m-p/1718987#M88576</link>
      <description>&lt;P&gt;Got it. Working now. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2026 15:43:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-component-title-font-size/m-p/1718987#M88576</guid>
      <dc:creator>ZorbaConlen1</dc:creator>
      <dc:date>2026-08-06T15:43:57Z</dc:date>
    </item>
  </channel>
</rss>

