Esri / calcite-web

Authoritative front-end development resources for Calcite design initiative. Includes extendable base components and styles, as well as a modular and efficient framework for ArcGIS properties.
http://esri.github.io/calcite-web/
Apache License 2.0
109 stars 58 forks source link

Remove Expanding Navigation JavaScript #687

Closed paulcpederson closed 7 years ago

paulcpederson commented 8 years ago

This was removed in version beta.24 [...] however I have noticed that the JS still exists in the repo.

https://github.com/Esri/calcite-web/blob/master/lib/js/patterns/expander.js

lheberlie commented 8 years ago

I also noticed that the search header in the developers site, as well as the JavaScript API landing page search both use the js-expand-toggle that is in the expander.js, correct?

<developers-search class="right" placeholder="map, feature layer, rest api, geocoding, ect...">
      <div class="margin-left-1 js-expand-toggle top-nav-list" data-expand="search">
        <a href="#" class="icon-ui-search top-nav-link">Search</a>
      </div>
    </developers-search>
<section class="expand js-expand panel panel-no-padding is-active" data-expand="search">
        <div class="grid-container padding-trailer-half padding-leader-1 padding-trailer-1">
          <form method="GET" action="/search/" class="column-24">
            <label>Search ArcGIS for Developers

              <a href="#" class="icon-ui-close js-expand-toggle right" data-expand="search"></a>
              <div class="input-group">
                <input class="input-group-input" type="search" name="q" placeholder="map, feature layer, rest api, geocoding, ect...">

                <span class="input-group-button">
                  <button type="submit" class="btn btn-clear icon-ui-search">Search</button>
                </span>
              </div>
            </label>
          </form>
        </div>
      </section>

cc: @patrickarlt, @jf990

patrickarlt commented 8 years ago

@lheberlie The CSS for this was removed several versions ago and @nikolaswise ported it into the developers site as a part of the <developers-search> component so we don't use this JS at all. For out next release we are changing to the new search pattern anyway so we wont use expanders at all.

nikolaswise commented 8 years ago

@lheberlie reference current Calcite Web documentation search for preview of new search UI

lheberlie commented 8 years ago

So ... it sounds like I need to move https://github.com/Esri/calcite-web/blob/master/lib/js/patterns/expander.js into the ArcGIS API for JavaScript SDK repo, as it sounds like it is on the way out? We use it in our modules overview page: https://jscore.esri.com/javascript/latest/api-reference/index.html#modules-in-esri

nikolaswise commented 8 years ago

This JS has been removed in #697