<?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: Changing style for calcite block headings in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-style-for-calcite-block-headings/m-p/1285755#M81043</link>
    <description>&lt;P&gt;Because of the shadow DOM, &lt;A href="https://developers.arcgis.com/calcite-design-system/core-concepts/#css-variables" target="_self"&gt;changing CSS variable values&lt;/A&gt; is the easiest way to go.&amp;nbsp; Calcite block headings' font weights use the variable --calcite-font-weight-medium, so you just need to change it's value in your CSS.&lt;/P&gt;&lt;P&gt;I added the class "main-block" to your Heading 1 and Heading 2 blocks, and I added the class "sub-block" to your Subheading blocks.&amp;nbsp; Then I just changed the value of the CSS variable for the .main-block blocks and set it back to default for the .sub-block blocks, since those are nested and thus affected by the .main-block changed variable.&amp;nbsp; Note that if you had other calcite elements inside your .main-blocks that referenced this CSS variable, you'd have to explicitly change those back to default too, similar to the .sub-blocks.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;script
      src="https://js.arcgis.com/calcite-components/1.0.0-beta.99/calcite.esm.js"
      type="module"
&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;link
      rel="stylesheet"
      href="https://js.arcgis.com/calcite-components/1.0.0-beta.99/calcite.css"
    /&amp;gt;
&amp;lt;style&amp;gt;
  calcite-block.main-block {
    --calcite-font-weight-medium: 800;
  }
  calcite-block.sub-block {
    --calcite-font-weight-medium: 500;
  }
&amp;lt;/style&amp;gt;
&amp;lt;calcite-shell&amp;gt;
  &amp;lt;calcite-shell-panel slot="panel-start" position="start" resizable="false"&amp;gt;
     &amp;lt;calcite-panel heading="Widget"&amp;gt;
        &amp;lt;calcite-block class="main-block" collapsible heading="Heading 1" open&amp;gt;
             &amp;lt;calcite-block collapsible heading="Heading Subsection 1" class="sub-block" closed&amp;gt;
             &amp;lt;/calcite-block&amp;gt;
             &amp;lt;calcite-block collapsible heading="Heading Subsection 2" class="sub-block" closed&amp;gt;
             &amp;lt;/calcite block&amp;gt;
        &amp;lt;/calcite-block&amp;gt;
        &amp;lt;calcite-block collapsible heading="Heading 2" class="main-block" open&amp;gt;
         &amp;lt;!--contains calcite blocks for heading 2*/--&amp;gt;
        &amp;lt;/calcite-block&amp;gt;

     &amp;lt;/calcite-panel&amp;gt;
  &amp;lt;/calcite-shell-panel&amp;gt;
&amp;lt;/calcite shell&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2023 17:02:44 GMT</pubDate>
    <dc:creator>jdyerLACSD</dc:creator>
    <dc:date>2023-05-04T17:02:44Z</dc:date>
    <item>
      <title>Changing style for calcite block headings</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-style-for-calcite-block-headings/m-p/1257743#M80236</link>
      <description>&lt;P&gt;I'm trying to change the calcite heading to bold. I looked through the CSS property and found there is a property called -for changing it to bold:&lt;/P&gt;&lt;PRE&gt;--calcite-font-weight-bold:600&lt;/PRE&gt;&lt;P&gt;But I'm not sure how to make the following headings bold: Heading 1, heading 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;script
      src="https://js.arcgis.com/calcite-components/1.0.0-beta.99/calcite.esm.js"
      type="module"
&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;link
      rel="stylesheet"
      href="https://js.arcgis.com/calcite-components/1.0.0-beta.99/calcite.css"
    /&amp;gt;
&amp;lt;calcite-shell&amp;gt;
  &amp;lt;calcite-shell-panel slot="panel-start" position="start" resizable="false"&amp;gt;
     &amp;lt;calcite-panel heading="Widget"&amp;gt;
        &amp;lt;calcite-block collapsible heading="Heading 1" open&amp;gt;
             &amp;lt;calcite-block collapsible heading="Heading Subsection 1" closed&amp;gt;
             &amp;lt;/calcite block&amp;gt;
             &amp;lt;calcite-block collapsible heading="Heading Subsection 2" closed&amp;gt;
             &amp;lt;/calcite block&amp;gt;
        &amp;lt;/calcite-block&amp;gt;
        &amp;lt;calcite-block collapsible heading="Heading 2" open&amp;gt;
         &amp;lt;!--contains calcite blocks for heading 2*/--&amp;gt;
        &amp;lt;/calcite-block&amp;gt;

     &amp;lt;/calcite-panel&amp;gt;
  &amp;lt;/calcite-shell-panel&amp;gt;
&amp;lt;/calcite shell&amp;gt;
    &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/507049"&gt;@Sage_Wall&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 21:23:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-style-for-calcite-block-headings/m-p/1257743#M80236</guid>
      <dc:creator>TheGamer</dc:creator>
      <dc:date>2023-02-15T21:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Changing style for calcite block headings</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-style-for-calcite-block-headings/m-p/1258747#M80279</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/595823"&gt;@TheGamer&lt;/a&gt;&amp;nbsp;, I'm not really sure but I'm checking around to see if I can get you an answer :).&amp;nbsp; It's not one of the css variables listed in the doc.&amp;nbsp;&amp;nbsp;&lt;A href="https://developers.arcgis.com/calcite-design-system/components/block/#styles" target="_blank"&gt;https://developers.arcgis.com/calcite-design-system/components/block/#styles&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 23:48:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-style-for-calcite-block-headings/m-p/1258747#M80279</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2023-02-15T23:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Changing style for calcite block headings</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-style-for-calcite-block-headings/m-p/1258903#M80293</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/507049"&gt;@Sage_Wall&lt;/a&gt;, is it possible to change the color of the heading container, so the calcite block for heading 1, and heading 2 is set so specific color&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 15:42:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-style-for-calcite-block-headings/m-p/1258903#M80293</guid>
      <dc:creator>TheGamer</dc:creator>
      <dc:date>2023-02-16T15:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Changing style for calcite block headings</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-style-for-calcite-block-headings/m-p/1258949#M80294</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/595823"&gt;@TheGamer&lt;/a&gt;&amp;nbsp;, I apologize but I'm not that familiar with customizing and styling calcite components.&amp;nbsp; I think I'm going to blindly tag&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/71373"&gt;@BenElan&lt;/a&gt;&amp;nbsp;and see if he might be able to help.&amp;nbsp; He knows a lot more about calcite than I do.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 16:49:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-style-for-calcite-block-headings/m-p/1258949#M80294</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2023-02-16T16:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Changing style for calcite block headings</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-style-for-calcite-block-headings/m-p/1285755#M81043</link>
      <description>&lt;P&gt;Because of the shadow DOM, &lt;A href="https://developers.arcgis.com/calcite-design-system/core-concepts/#css-variables" target="_self"&gt;changing CSS variable values&lt;/A&gt; is the easiest way to go.&amp;nbsp; Calcite block headings' font weights use the variable --calcite-font-weight-medium, so you just need to change it's value in your CSS.&lt;/P&gt;&lt;P&gt;I added the class "main-block" to your Heading 1 and Heading 2 blocks, and I added the class "sub-block" to your Subheading blocks.&amp;nbsp; Then I just changed the value of the CSS variable for the .main-block blocks and set it back to default for the .sub-block blocks, since those are nested and thus affected by the .main-block changed variable.&amp;nbsp; Note that if you had other calcite elements inside your .main-blocks that referenced this CSS variable, you'd have to explicitly change those back to default too, similar to the .sub-blocks.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;script
      src="https://js.arcgis.com/calcite-components/1.0.0-beta.99/calcite.esm.js"
      type="module"
&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;link
      rel="stylesheet"
      href="https://js.arcgis.com/calcite-components/1.0.0-beta.99/calcite.css"
    /&amp;gt;
&amp;lt;style&amp;gt;
  calcite-block.main-block {
    --calcite-font-weight-medium: 800;
  }
  calcite-block.sub-block {
    --calcite-font-weight-medium: 500;
  }
&amp;lt;/style&amp;gt;
&amp;lt;calcite-shell&amp;gt;
  &amp;lt;calcite-shell-panel slot="panel-start" position="start" resizable="false"&amp;gt;
     &amp;lt;calcite-panel heading="Widget"&amp;gt;
        &amp;lt;calcite-block class="main-block" collapsible heading="Heading 1" open&amp;gt;
             &amp;lt;calcite-block collapsible heading="Heading Subsection 1" class="sub-block" closed&amp;gt;
             &amp;lt;/calcite-block&amp;gt;
             &amp;lt;calcite-block collapsible heading="Heading Subsection 2" class="sub-block" closed&amp;gt;
             &amp;lt;/calcite block&amp;gt;
        &amp;lt;/calcite-block&amp;gt;
        &amp;lt;calcite-block collapsible heading="Heading 2" class="main-block" open&amp;gt;
         &amp;lt;!--contains calcite blocks for heading 2*/--&amp;gt;
        &amp;lt;/calcite-block&amp;gt;

     &amp;lt;/calcite-panel&amp;gt;
  &amp;lt;/calcite-shell-panel&amp;gt;
&amp;lt;/calcite shell&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 17:02:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-style-for-calcite-block-headings/m-p/1285755#M81043</guid>
      <dc:creator>jdyerLACSD</dc:creator>
      <dc:date>2023-05-04T17:02:44Z</dc:date>
    </item>
  </channel>
</rss>

