<?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: Calcite label not vertically aligned when using with checkbox in Calcite Design System Questions</title>
    <link>https://community.esri.com/t5/calcite-design-system-questions/calcite-label-not-vertically-aligned-when-using/m-p/1661452#M875</link>
    <description>&lt;P&gt;Can you share an isolated case via Codepen? Wondering if there is some conflicting CSS that may be causing the issue. Here are a few templates:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://codepen.io/pen?template=GgoGbEL" target="_self"&gt;Codepen&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://stackblitz.com/github/esri/calcite-design-system/tree/dev/examples/components/react?file=README.md" target="_self"&gt;Stackblitz&lt;/A&gt; (React)&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://jsbin.com/qecewik/edit?html,output" target="_self"&gt;JS Bin&lt;/A&gt; (with Maps SDK for JS)&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Tue, 28 Oct 2025 17:43:31 GMT</pubDate>
    <dc:creator>KittyHurley</dc:creator>
    <dc:date>2025-10-28T17:43:31Z</dc:date>
    <item>
      <title>Calcite label not vertically aligned when using with checkbox</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/calcite-label-not-vertically-aligned-when-using/m-p/1661095#M872</link>
      <description>&lt;P&gt;I am using a Calcite label with a Calcite checkbox and when combined in a div with a button they do not vertically align (this is within the footer of a Calcite dialog).&amp;nbsp; I essentially want the div with the button and label to align with the align-items class but they do not.&amp;nbsp; I included some code and screenshot of the inspection of the label.&lt;/P&gt;&lt;P&gt;Appreciate the help in advance!&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;div slot="footer-end" className="flex items-center space-x-4"&amp;gt;
  &amp;lt;calcite-label layout="inline"&amp;gt;
    &amp;lt;calcite-checkbox
      checked={dontShowAgain}
      onChange={(e) =&amp;gt; setDontShowAgain(e.target.checked)}
    &amp;gt;&amp;lt;/calcite-checkbox&amp;gt;
    Don't show this again
  &amp;lt;/calcite-label&amp;gt;
  &amp;lt;calcite-button onClick={handleClose}&amp;gt;Close&amp;lt;/calcite-button&amp;gt;
&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 19:39:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/calcite-label-not-vertically-aligned-when-using/m-p/1661095#M872</guid>
      <dc:creator>EricErtl</dc:creator>
      <dc:date>2025-10-27T19:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calcite label not vertically aligned when using with checkbox</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/calcite-label-not-vertically-aligned-when-using/m-p/1661434#M873</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/75713"&gt;@EricErtl&lt;/a&gt;&amp;nbsp;This looks to be a result of trying to fit in the Label/Checkbox and Button into the same slot. Can you add the different functionalities to their own slots, such as "footer-start" and "footer-end"?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;div slot="footer-start"&amp;gt;
  &amp;lt;calcite-label layout="inline"&amp;gt;
    &amp;lt;calcite-checkbox&amp;gt;&amp;lt;/calcite-checkbox&amp;gt;
      Don't show this dialog again
    &amp;lt;/calcite-label&amp;gt;
&amp;lt;/div&amp;gt;

&amp;lt;calcite-button slot="footer-end"&amp;gt;Close&amp;lt;/calcite-button&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2025 17:06:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/calcite-label-not-vertically-aligned-when-using/m-p/1661434#M873</guid>
      <dc:creator>KittyHurley</dc:creator>
      <dc:date>2025-10-28T17:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calcite label not vertically aligned when using with checkbox</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/calcite-label-not-vertically-aligned-when-using/m-p/1661450#M874</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/574219"&gt;@KittyHurley&lt;/a&gt;. Thank you for the response!&amp;nbsp; Unfortunately that didn't seem to change the behavior.&amp;nbsp; I tried using just the label and button with slots and also included the label in a div with a slot.&amp;nbsp; Both had the same result.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EricErtl_0-1761673089000.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/142753iF506044B885A548B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EricErtl_0-1761673089000.png" alt="EricErtl_0-1761673089000.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;div slot="footer-start"&amp;gt;
  &amp;lt;calcite-label layout="inline"&amp;gt;
    &amp;lt;calcite-checkbox
      checked={dontShowAgain}
      oncalciteCheckboxChange={handleCheckboxChange}
    &amp;gt;&amp;lt;/calcite-checkbox&amp;gt;
    Don't show this again
  &amp;lt;/calcite-label&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;calcite-button slot="footer-end" onClick={handleClose}&amp;gt;
  Close
&amp;lt;/calcite-button&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Also just the calcite components...&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;calcite-label slot="footer-start" layout="inline"&amp;gt;
  &amp;lt;calcite-checkbox
    checked={dontShowAgain}
    oncalciteCheckboxChange={handleCheckboxChange}
  &amp;gt;&amp;lt;/calcite-checkbox&amp;gt;
  Don't show this again
&amp;lt;/calcite-label&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2025 17:38:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/calcite-label-not-vertically-aligned-when-using/m-p/1661450#M874</guid>
      <dc:creator>EricErtl</dc:creator>
      <dc:date>2025-10-28T17:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calcite label not vertically aligned when using with checkbox</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/calcite-label-not-vertically-aligned-when-using/m-p/1661452#M875</link>
      <description>&lt;P&gt;Can you share an isolated case via Codepen? Wondering if there is some conflicting CSS that may be causing the issue. Here are a few templates:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://codepen.io/pen?template=GgoGbEL" target="_self"&gt;Codepen&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://stackblitz.com/github/esri/calcite-design-system/tree/dev/examples/components/react?file=README.md" target="_self"&gt;Stackblitz&lt;/A&gt; (React)&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://jsbin.com/qecewik/edit?html,output" target="_self"&gt;JS Bin&lt;/A&gt; (with Maps SDK for JS)&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 28 Oct 2025 17:43:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/calcite-label-not-vertically-aligned-when-using/m-p/1661452#M875</guid>
      <dc:creator>KittyHurley</dc:creator>
      <dc:date>2025-10-28T17:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calcite label not vertically aligned when using with checkbox</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/calcite-label-not-vertically-aligned-when-using/m-p/1661490#M876</link>
      <description>&lt;P&gt;I cannot upload my code but I did &lt;A href="https://codepen.io/ericertl/pen/wBMxyNR" target="_blank" rel="noopener"&gt;create a pen&lt;/A&gt; showing the issue using the footer-start and footer-end for the label and button respectively.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2025 18:59:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/calcite-label-not-vertically-aligned-when-using/m-p/1661490#M876</guid>
      <dc:creator>EricErtl</dc:creator>
      <dc:date>2025-10-28T18:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calcite label not vertically aligned when using with checkbox</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/calcite-label-not-vertically-aligned-when-using/m-p/1661516#M877</link>
      <description>&lt;P&gt;Thanks for the above example! To accommodate with Label and Switch you can use Label's "--calcite-label-margin-bottom" CSS variable:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;style&amp;gt;
#footer-start-switch {
  --calcite-label-margin-bottom: 0;
}
&amp;lt;/style&amp;gt;

&amp;lt;div id="footer-start-content" slot="footer-start"&amp;gt;
  &amp;lt;calcite-label id="footer-start-switch" scale="l" layout="inline"&amp;gt;
    &amp;lt;calcite-switch checked&amp;gt;&amp;lt;/calcite-switch&amp;gt;
    Don't show this again
  &amp;lt;/calcite-label&amp;gt;
&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2025 19:38:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/calcite-label-not-vertically-aligned-when-using/m-p/1661516#M877</guid>
      <dc:creator>KittyHurley</dc:creator>
      <dc:date>2025-10-28T19:38:02Z</dc:date>
    </item>
  </channel>
</rss>

