<?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 Adding a hyperlink button to a webpage header using Calcite? in Calcite Design System Questions</title>
    <link>https://community.esri.com/t5/calcite-design-system-questions/adding-a-hyperlink-button-to-a-webpage-header/m-p/1164575#M99</link>
    <description>&lt;P&gt;I am trying to get a button working on the header of my web map app but for whatever reason it shows temporarily only while the page is loading but disappears once loaded. Is there something I am missing? here is the code I am using for it. It is a simple button with a link to another app&lt;/P&gt;&lt;P&gt;Current code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ArianaBernal_1-1649968221545.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/38948iAE0A8E2DCBAB6AF3/image-size/large?v=v2&amp;amp;px=999" role="button" title="ArianaBernal_1-1649968221545.png" alt="ArianaBernal_1-1649968221545.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Button showing before disappearing:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ArianaBernal_3-1649968281113.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/38950i49AB2D5F0185E782/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ArianaBernal_3-1649968281113.png" alt="ArianaBernal_3-1649968281113.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Apr 2022 20:32:11 GMT</pubDate>
    <dc:creator>ArianaBernal</dc:creator>
    <dc:date>2022-04-14T20:32:11Z</dc:date>
    <item>
      <title>Adding a hyperlink button to a webpage header using Calcite?</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/adding-a-hyperlink-button-to-a-webpage-header/m-p/1164575#M99</link>
      <description>&lt;P&gt;I am trying to get a button working on the header of my web map app but for whatever reason it shows temporarily only while the page is loading but disappears once loaded. Is there something I am missing? here is the code I am using for it. It is a simple button with a link to another app&lt;/P&gt;&lt;P&gt;Current code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ArianaBernal_1-1649968221545.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/38948iAE0A8E2DCBAB6AF3/image-size/large?v=v2&amp;amp;px=999" role="button" title="ArianaBernal_1-1649968221545.png" alt="ArianaBernal_1-1649968221545.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Button showing before disappearing:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ArianaBernal_3-1649968281113.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/38950i49AB2D5F0185E782/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ArianaBernal_3-1649968281113.png" alt="ArianaBernal_3-1649968281113.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 20:32:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/adding-a-hyperlink-button-to-a-webpage-header/m-p/1164575#M99</guid>
      <dc:creator>ArianaBernal</dc:creator>
      <dc:date>2022-04-14T20:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a hyperlink button to a webpage header using Calcite?</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/adding-a-hyperlink-button-to-a-webpage-header/m-p/1164606#M100</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/80620"&gt;@ArianaBernal&lt;/a&gt;, Leveraging the code you provided above, was able to load the button as-expected, but it looks like you have other elements that may be conflicting, such as the calcite-switch and some menus.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's also an alternative to calcite-button that might work in this case. If you are seeking to provide a solution that floats above other elements in the interface, you could use the &lt;A href="https://developers.arcgis.com/calcite-design-system/components/fab/" target="_blank" rel="noopener"&gt;calcite-fab&lt;/A&gt;&amp;nbsp;(Floating Action Button) if you are looking for a button with more visual prominence. There are a few differences from button, such as rounded corners and box-shadows, but could solve other conflicting visual elements.&lt;/P&gt;&lt;P&gt;A similar implementation to the above screenshot:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;calcite-fab color="blue" icon="map-pin" text-enabled text="Address Checker"&amp;gt;&amp;lt;/calcite-fab&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Otherwise, if FAB doesn't seem like a good fit for this use case, can&amp;nbsp;you provide a codepen that reproduces the issue?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 21:40:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/adding-a-hyperlink-button-to-a-webpage-header/m-p/1164606#M100</guid>
      <dc:creator>KittyHurley</dc:creator>
      <dc:date>2022-04-14T21:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a hyperlink button to a webpage header using Calcite?</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/adding-a-hyperlink-button-to-a-webpage-header/m-p/1164753#M101</link>
      <description>&lt;P&gt;Hey Kitty,&lt;/P&gt;&lt;P&gt;I have attempted the calcite-fab as well but I am still getting the same issue, I would ideally like to add this button next to the toggle but am not finding a way to get them to sit next to one another. Here is a codepen of the issue. Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/ariana-prog/pen/VwyVwVV" target="_self"&gt;Codepen Header Issue &lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 15:04:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/adding-a-hyperlink-button-to-a-webpage-header/m-p/1164753#M101</guid>
      <dc:creator>ArianaBernal</dc:creator>
      <dc:date>2022-04-15T15:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a hyperlink button to a webpage header using Calcite?</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/adding-a-hyperlink-button-to-a-webpage-header/m-p/1164855#M102</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/80620"&gt;@ArianaBernal&lt;/a&gt;, Thank you for the Codepen for the additional context.&lt;/P&gt;&lt;P&gt;We recommend moving the header slot inside the calcite-shell. Then add some CSS .class selectors to the header slot, controls, and calcite-switch to align them in the header.&lt;/P&gt;&lt;P&gt;Code snippet below, and a &lt;A href="https://codepen.io/geospatialem/pen/xxpQwGq" target="_blank" rel="noopener"&gt;full Codepen example&lt;/A&gt;.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;style&amp;gt;
.custom-header {
  display: flex;
  padding: 0 1rem;
  background-color: var(--calcite-ui-foreground-1);
}

.custom-header-controls {
  margin-inline-start: auto;
  display: flex;
  align-self: center;
}

.custom-label-wrapper {
  display: flex;
  border: 1px solid var(--calcite-ui-border-1);
  margin-inline-start: 1rem;
  padding: 0 0.5rem;
}

.header-switch {
  margin: 0 0.5rem;
}
&amp;lt;/style&amp;gt;

&amp;lt;calcite-shell content-behind hidden&amp;gt;
  &amp;lt;!--  Header slot  --&amp;gt;
  &amp;lt;div slot="header" class="custom-header"&amp;gt;
    &amp;lt;h2 id="header-title"&amp;gt;
      &amp;lt;!-- Dynamically populated --&amp;gt;
    &amp;lt;/h2&amp;gt;
    &amp;lt;!-- Address Checker button --&amp;gt;
    &amp;lt;div class="custom-header-controls"&amp;gt;
      &amp;lt;calcite-button appearance="clear" color="blue" href="{your-custom-url}" icon-start="map-pin"&amp;gt;Address Checker&amp;lt;/calcite-button&amp;gt;
      &amp;lt;!-- Dark Mode Switch --&amp;gt;
      &amp;lt;calcite-label disable-spacing layout="inline" class="custom-label-wrapper"&amp;gt;
        &amp;lt;calcite-icon icon="brightness" scale="s"&amp;gt;&amp;lt;/calcite-icon&amp;gt;
        &amp;lt;calcite-switch class="header-switch"&amp;gt;&amp;lt;/calcite-switch&amp;gt;
        &amp;lt;calcite-icon icon="moon" scale="s"&amp;gt;&amp;lt;/calcite-icon&amp;gt;
      &amp;lt;/calcite-label&amp;gt;
    &amp;lt;/div&amp;gt;
  &amp;lt;/div&amp;gt;
...Other calcite-shell content...
&amp;lt;/calcite-shell&amp;gt;

&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 18:37:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/adding-a-hyperlink-button-to-a-webpage-header/m-p/1164855#M102</guid>
      <dc:creator>KittyHurley</dc:creator>
      <dc:date>2022-04-15T18:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a hyperlink button to a webpage header using Calcite?</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/adding-a-hyperlink-button-to-a-webpage-header/m-p/1164861#M103</link>
      <description>&lt;P&gt;This should work, thank you for your help and advice!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 18:58:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/adding-a-hyperlink-button-to-a-webpage-header/m-p/1164861#M103</guid>
      <dc:creator>ArianaBernal</dc:creator>
      <dc:date>2022-04-15T18:58:00Z</dc:date>
    </item>
  </channel>
</rss>

