<?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: How to setFocus on modal close button in Calcite Design System Questions</title>
    <link>https://community.esri.com/t5/calcite-design-system-questions/how-to-setfocus-on-modal-close-button/m-p/1244329#M288</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;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;This change was intentional&amp;nbsp; to align with a11y standards, you can read more in this comment:&amp;nbsp;&lt;A href="https://github.com/Esri/calcite-components/issues/5856#issuecomment-1333941884" target="_blank"&gt;https://github.com/Esri/calcite-components/issues/5856#issuecomment-1333941884&lt;/A&gt;&lt;/P&gt;&lt;P&gt;We are working on updating all of the documentation to align with the pre-v1 breaking changes, sorry for the confusion! The documentation currently represents beta.97 functionality. The documentation will be up to date for the upcoming v1 release, and I'll comment here if we get it up to date for beta.99 before then.&lt;/P&gt;&lt;P&gt;Happy holidays!&lt;/P&gt;</description>
    <pubDate>Thu, 29 Dec 2022 18:40:32 GMT</pubDate>
    <dc:creator>BenElan</dc:creator>
    <dc:date>2022-12-29T18:40:32Z</dc:date>
    <item>
      <title>How to setFocus on modal close button</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/how-to-setfocus-on-modal-close-button/m-p/1244305#M287</link>
      <description>&lt;P&gt;This seems to have broken in beta 99. The "X" button is getting focus.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GregoryBologna_0-1672336742696.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/59463i51AED36D5BB7D6CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GregoryBologna_0-1672336742696.png" alt="GregoryBologna_0-1672336742696.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;beta 97&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sets focus on the component. By default, tries to focus on focusable content. If there is none, it will focus on the close button. To focus on the close button, use the&amp;nbsp;&lt;/SPAN&gt;close-button&lt;SPAN&gt;&amp;nbsp;focus ID.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let button = document.createElement('calcite-button');
button.setAttribute('slot', 'secondary');     
button.innerHTML = 'Cancel'; 

??? not working
button.setFocus('close-button');&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 18:01:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/how-to-setfocus-on-modal-close-button/m-p/1244305#M287</guid>
      <dc:creator>GregoryBologna</dc:creator>
      <dc:date>2022-12-29T18:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to setFocus on modal close button</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/how-to-setfocus-on-modal-close-button/m-p/1244329#M288</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;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;This change was intentional&amp;nbsp; to align with a11y standards, you can read more in this comment:&amp;nbsp;&lt;A href="https://github.com/Esri/calcite-components/issues/5856#issuecomment-1333941884" target="_blank"&gt;https://github.com/Esri/calcite-components/issues/5856#issuecomment-1333941884&lt;/A&gt;&lt;/P&gt;&lt;P&gt;We are working on updating all of the documentation to align with the pre-v1 breaking changes, sorry for the confusion! The documentation currently represents beta.97 functionality. The documentation will be up to date for the upcoming v1 release, and I'll comment here if we get it up to date for beta.99 before then.&lt;/P&gt;&lt;P&gt;Happy holidays!&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 18:40:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/how-to-setfocus-on-modal-close-button/m-p/1244329#M288</guid>
      <dc:creator>BenElan</dc:creator>
      <dc:date>2022-12-29T18:40:32Z</dc:date>
    </item>
  </channel>
</rss>

