<?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: ElevationProfile widget in dark theme in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/elevationprofile-widget-in-dark-theme/m-p/1352791#M82903</link>
    <description>&lt;P&gt;This is a new bug in 4.28.&amp;nbsp; The tooltip and its contents are not document elements, but are instead graphics rendered on a canvas element, so they're not controllable via CSS.&amp;nbsp; The only workaround I have is to alter my locally hosted copy of the SDK.&lt;/P&gt;&lt;P&gt;The problem appears to occur in the "_updateTextColor" method of the undocumented esri/chunks/Tooltip module.&amp;nbsp; I'm not sure if the problem is because the function is called when it shouldn't be, or because something in the function isn't working as intended.&amp;nbsp; Either way, the function overrides the theme's font color with another color that doesn't stand out very well.&amp;nbsp; It happens with the light theme too, which my apps use.&lt;/P&gt;&lt;P&gt;The construction of the Tooltip instance takes place in the&amp;nbsp;esri/widgets/ElevationProfile/support/chartUtils module.&amp;nbsp; It looks something like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const b = Q.Tooltip.new(c.root, {
	forceHidden: !0,
	getFillFromSprite: !1,
	getLabelFillFromSprite: !1,
	pointerOrientation: "vertical",
	visible: !1
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've modified my local copy to include a property called "autoTextColor" with its value set to false like so:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const b = Q.Tooltip.new(c.root, {
	autoTextColor: !1,
	forceHidden: !0,
	getFillFromSprite: !1,
	getLabelFillFromSprite: !1,
	pointerOrientation: "vertical",
	visible: !1
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This prevents the aforementioned "_updateTextColor" function from altering the label's color.&amp;nbsp; I don't know of any better way to make this work, since there doesn't appear to be a way to get a reference to the Tooltip from the ElevationProfile widget.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/169842"&gt;@Noah-Sager&lt;/a&gt;&amp;nbsp;perhaps you can add this one to the list...Happy Thanksgiving btw.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Nov 2023 21:06:19 GMT</pubDate>
    <dc:creator>JoelBennett</dc:creator>
    <dc:date>2023-11-22T21:06:19Z</dc:date>
    <item>
      <title>ElevationProfile widget in dark theme</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/elevationprofile-widget-in-dark-theme/m-p/1351209#M82815</link>
      <description>&lt;P&gt;With dark stylesheet, the popover in the ElevationProfile widget text stays dark, so that it is unreadable&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChristopheSuter_0-1700319619880.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/86495i7701E1FE25D0C41B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ChristopheSuter_0-1700319619880.png" alt="ChristopheSuter_0-1700319619880.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See codepen below&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/christophesuter/pen/qBgxWBp" target="_blank" rel="noopener"&gt;https://codepen.io/christophesuter/pen/qBgxWBp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Does anyone have a workaround ? Or know which css variable is used for this ?&lt;/P&gt;</description>
      <pubDate>Sat, 18 Nov 2023 15:01:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/elevationprofile-widget-in-dark-theme/m-p/1351209#M82815</guid>
      <dc:creator>ChristopheSuter</dc:creator>
      <dc:date>2023-11-18T15:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: ElevationProfile widget in dark theme</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/elevationprofile-widget-in-dark-theme/m-p/1352791#M82903</link>
      <description>&lt;P&gt;This is a new bug in 4.28.&amp;nbsp; The tooltip and its contents are not document elements, but are instead graphics rendered on a canvas element, so they're not controllable via CSS.&amp;nbsp; The only workaround I have is to alter my locally hosted copy of the SDK.&lt;/P&gt;&lt;P&gt;The problem appears to occur in the "_updateTextColor" method of the undocumented esri/chunks/Tooltip module.&amp;nbsp; I'm not sure if the problem is because the function is called when it shouldn't be, or because something in the function isn't working as intended.&amp;nbsp; Either way, the function overrides the theme's font color with another color that doesn't stand out very well.&amp;nbsp; It happens with the light theme too, which my apps use.&lt;/P&gt;&lt;P&gt;The construction of the Tooltip instance takes place in the&amp;nbsp;esri/widgets/ElevationProfile/support/chartUtils module.&amp;nbsp; It looks something like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const b = Q.Tooltip.new(c.root, {
	forceHidden: !0,
	getFillFromSprite: !1,
	getLabelFillFromSprite: !1,
	pointerOrientation: "vertical",
	visible: !1
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've modified my local copy to include a property called "autoTextColor" with its value set to false like so:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const b = Q.Tooltip.new(c.root, {
	autoTextColor: !1,
	forceHidden: !0,
	getFillFromSprite: !1,
	getLabelFillFromSprite: !1,
	pointerOrientation: "vertical",
	visible: !1
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This prevents the aforementioned "_updateTextColor" function from altering the label's color.&amp;nbsp; I don't know of any better way to make this work, since there doesn't appear to be a way to get a reference to the Tooltip from the ElevationProfile widget.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/169842"&gt;@Noah-Sager&lt;/a&gt;&amp;nbsp;perhaps you can add this one to the list...Happy Thanksgiving btw.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 21:06:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/elevationprofile-widget-in-dark-theme/m-p/1352791#M82903</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-11-22T21:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: ElevationProfile widget in dark theme</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/elevationprofile-widget-in-dark-theme/m-p/1354170#M82948</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/39681"&gt;@ChristopheSuter&lt;/a&gt;&amp;nbsp;- this bug will be fixed in the next version of the API (v4.29). Thanks for reporting it!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 17:17:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/elevationprofile-widget-in-dark-theme/m-p/1354170#M82948</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2023-11-28T17:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: ElevationProfile widget in dark theme</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/elevationprofile-widget-in-dark-theme/m-p/1369832#M83336</link>
      <description>&lt;P&gt;Good to know this will be fixed in the new release. I assume we will still be unable to modify this color directly with CSS in the event we wanted a specific color?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 22:22:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/elevationprofile-widget-in-dark-theme/m-p/1369832#M83336</guid>
      <dc:creator>AndrewWinchell1896</dc:creator>
      <dc:date>2024-01-12T22:22:32Z</dc:date>
    </item>
  </channel>
</rss>

