<?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 calcite-block disablePadding deprecated in Calcite Design System Questions</title>
    <link>https://community.esri.com/t5/calcite-design-system-questions/calcite-block-disablepadding-deprecated/m-p/1219997#M252</link>
    <description>&lt;P&gt;How do I use --calcite-block-padding to remove padding on block?&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;A href="https://developers.arcgis.com/calcite-design-system/components/block/#component-api-properties-disablePadding" target="_blank" rel="noopener"&gt;disablePadding&lt;/A&gt;&lt;/TD&gt;&lt;TD&gt;disable-padding&lt;/TD&gt;&lt;TD&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;deprecated&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;--calcite-block-padding&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;CSS variable instead.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Here's my code&lt;/P&gt;&lt;PRE&gt;let block = document.createElement('calcite-block');
block.setAttribute('id', 'pao-accordion-block');
block.setAttribute('heading', 'Buffer Results');
block.setAttribute('description', ' '); // populated on table update
block.setAttribute('collapsible', '');
block.setAttribute('open', '');
block.addEventListener(
	'calciteBlockToggle',
	toggleAccordionBlockDescription
);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Oct 2022 18:24:54 GMT</pubDate>
    <dc:creator>GregoryBologna</dc:creator>
    <dc:date>2022-10-07T18:24:54Z</dc:date>
    <item>
      <title>calcite-block disablePadding deprecated</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/calcite-block-disablepadding-deprecated/m-p/1219997#M252</link>
      <description>&lt;P&gt;How do I use --calcite-block-padding to remove padding on block?&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;A href="https://developers.arcgis.com/calcite-design-system/components/block/#component-api-properties-disablePadding" target="_blank" rel="noopener"&gt;disablePadding&lt;/A&gt;&lt;/TD&gt;&lt;TD&gt;disable-padding&lt;/TD&gt;&lt;TD&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;deprecated&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;--calcite-block-padding&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;CSS variable instead.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Here's my code&lt;/P&gt;&lt;PRE&gt;let block = document.createElement('calcite-block');
block.setAttribute('id', 'pao-accordion-block');
block.setAttribute('heading', 'Buffer Results');
block.setAttribute('description', ' '); // populated on table update
block.setAttribute('collapsible', '');
block.setAttribute('open', '');
block.addEventListener(
	'calciteBlockToggle',
	toggleAccordionBlockDescription
);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 18:24:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/calcite-block-disablepadding-deprecated/m-p/1219997#M252</guid>
      <dc:creator>GregoryBologna</dc:creator>
      <dc:date>2022-10-07T18:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: calcite-block disablePadding deprecated</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/calcite-block-disablepadding-deprecated/m-p/1220382#M253</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/193359"&gt;@GregoryBologna&lt;/a&gt;, you can set the CSS variable on the component:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;calcite-block {
  --calcite-block-padding: 0rem;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For setting the CSS variable using JavaScript, can use properties:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;block.style.setProperty("--calcite-block-padding", "0rem");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a new documentation page on web concepts that includes some guidance on CSS variables releasing this week. Will post an update when the page is available.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 15:28:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/calcite-block-disablepadding-deprecated/m-p/1220382#M253</guid>
      <dc:creator>KittyHurley</dc:creator>
      <dc:date>2022-10-10T15:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: calcite-block disablePadding deprecated</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/calcite-block-disablepadding-deprecated/m-p/1221223#M254</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/193359"&gt;@GregoryBologna&lt;/a&gt;&amp;nbsp;, we added a new page to the &lt;A href="https://developers.arcgis.com/calcite-design-system/web-concepts" target="_blank" rel="noopener"&gt;Calcite’s ArcGIS Developers Site&lt;/A&gt; around web concepts.&lt;/P&gt;&lt;P&gt;Since we've had a few conversations around a few web component concepts, wanted to share some more in-depth details – if interested in exploring some of the terms further.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 18:07:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/calcite-block-disablepadding-deprecated/m-p/1221223#M254</guid>
      <dc:creator>KittyHurley</dc:creator>
      <dc:date>2022-10-12T18:07:54Z</dc:date>
    </item>
  </channel>
</rss>

