<?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: Styling Loader Text in Calcite Design System Questions</title>
    <link>https://community.esri.com/t5/calcite-design-system-questions/styling-loader-text/m-p/1102233#M43</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/520878"&gt;@SpaceyMcSpaceFace&lt;/a&gt;.,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I apologize for the belated reply. The "--calcite-loader-font-size" css var effects the load percentage and can only be used when&amp;nbsp;the &lt;A href="https://developers.arcgis.com/calcite-design-system/components/loader/#component-api-properties-type" target="_self"&gt;type property&lt;/A&gt; is "determinate". In order to change the text property's size, you can use the "--calcite-font-size--2" css var. &lt;A href="https://developers.arcgis.com/calcite-design-system/foundations/type/#type-pairing" target="_self"&gt;Here is the typography doc&lt;/A&gt; where it provides those css vars. I put together a sample demonstrating how to change both:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;A href="https://codepen.io/benesri/pen/BaZvybv" target="_blank" rel="noopener"&gt;https://codepen.io/benesri/pen/BaZvybv&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Let me know if you have any additional questions!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ben&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Sep 2021 18:20:09 GMT</pubDate>
    <dc:creator>BenElan</dc:creator>
    <dc:date>2021-09-27T18:20:09Z</dc:date>
    <item>
      <title>Styling Loader Text</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/styling-loader-text/m-p/1098815#M38</link>
      <description>&lt;P&gt;Is there a way to style the loader "text"? Specifically increasing the font size?&lt;/P&gt;&lt;P&gt;I've tried adding "font-size" and "--calcite-loader-font-size" to the style attribute on calcite-loader element but it didn't do anything.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;      &amp;lt;calcite-loader
        class="loader"
        active
        scale="l"
        text="loading ..."
        label="loading"
        style="
        --calcite-loader-font-size: 2em;
        font-size:2em;
        --calcite-ui-text-1: #fff;
      &amp;gt;
      &amp;lt;/calcite-loader&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;I've also tried to style the text via JavaScript. This works BUT you'll initially see the smaller font size before JavaScript is executed to increase the font-size, which doesn't look great. Thanks!&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;&amp;lt;li-code lang="c"&amp;gt;document.querySelectorAll("calcite-loader").forEach(node =&amp;gt; node.shadowRoot.querySelector(".loader__text").style.setProperty("font-size", "1.3em"));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 05:18:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/styling-loader-text/m-p/1098815#M38</guid>
      <dc:creator>SpaceyMcSpaceFace</dc:creator>
      <dc:date>2021-09-16T05:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Styling Loader Text</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/styling-loader-text/m-p/1102233#M43</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/520878"&gt;@SpaceyMcSpaceFace&lt;/a&gt;.,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I apologize for the belated reply. The "--calcite-loader-font-size" css var effects the load percentage and can only be used when&amp;nbsp;the &lt;A href="https://developers.arcgis.com/calcite-design-system/components/loader/#component-api-properties-type" target="_self"&gt;type property&lt;/A&gt; is "determinate". In order to change the text property's size, you can use the "--calcite-font-size--2" css var. &lt;A href="https://developers.arcgis.com/calcite-design-system/foundations/type/#type-pairing" target="_self"&gt;Here is the typography doc&lt;/A&gt; where it provides those css vars. I put together a sample demonstrating how to change both:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;A href="https://codepen.io/benesri/pen/BaZvybv" target="_blank" rel="noopener"&gt;https://codepen.io/benesri/pen/BaZvybv&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Let me know if you have any additional questions!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ben&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 18:20:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/styling-loader-text/m-p/1102233#M43</guid>
      <dc:creator>BenElan</dc:creator>
      <dc:date>2021-09-27T18:20:09Z</dc:date>
    </item>
  </channel>
</rss>

