@api-components/api-navigation 4.3.4 → 4.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@api-components/api-navigation",
3
3
  "description": "An element to display the response body",
4
- "version": "4.3.4",
4
+ "version": "4.3.6",
5
5
  "license": "Apache-2.0",
6
6
  "main": "index.js",
7
7
  "module": "index.js",
@@ -3,7 +3,7 @@ import { LitElement, html } from 'lit-element';
3
3
  import { AmfHelperMixin } from '@api-components/amf-helper-mixin/amf-helper-mixin.js';
4
4
  import '@api-components/raml-aware/raml-aware.js';
5
5
  import '@anypoint-web-components/anypoint-button/anypoint-icon-button.js';
6
- import '@advanced-rest-client/icons/arc-icon.js';
6
+ import { keyboardArrowDown, codegenie, openInNew } from '@advanced-rest-client/icons/ArcIcons.js';
7
7
  import '@anypoint-web-components/anypoint-collapse/anypoint-collapse.js';
8
8
  import httpMethodStyles from '@api-components/http-method-label/http-method-label-common-styles.js';
9
9
  import navStyles from './Styles.js';
@@ -1873,7 +1873,7 @@ export class ApiNavigation extends AmfHelperMixin(LitElement) {
1873
1873
  data-toggle="endpoints"
1874
1874
  >
1875
1875
  <span class="icon" aria-label="${toggleState}"
1876
- ><arc-icon icon="keyboardArrowDown"></arc-icon></span
1876
+ >${keyboardArrowDown}</span
1877
1877
  >
1878
1878
  </anypoint-icon-button>
1879
1879
  </div>
@@ -1960,7 +1960,7 @@ export class ApiNavigation extends AmfHelperMixin(LitElement) {
1960
1960
  tabindex="-1"
1961
1961
  @click="${this._toggleEndpointButton}"
1962
1962
  >
1963
- <span class="icon" aria-label="${ariaLabel}"><arc-icon icon="keyboardArrowDown"></arc-icon></span>
1963
+ <span class="icon" aria-label="${ariaLabel}">${keyboardArrowDown}</span>
1964
1964
  </anypoint-icon-button>
1965
1965
  </div>
1966
1966
  <anypoint-collapse
@@ -2006,10 +2006,7 @@ export class ApiNavigation extends AmfHelperMixin(LitElement) {
2006
2006
  data-method="${methodItem.method}"
2007
2007
  >${methodItem.method}
2008
2008
  ${methodItem.hasAgent
2009
- ? html`<arc-icon
2010
- icon="codegenie"
2011
- class="method-icon"
2012
- ></arc-icon>`
2009
+ ? html`<span class="method-icon">${codegenie}</span>`
2013
2010
  : ''}</span
2014
2011
  >
2015
2012
  ${methodItem.label}
@@ -2051,7 +2048,7 @@ export class ApiNavigation extends AmfHelperMixin(LitElement) {
2051
2048
  tabindex="-1"
2052
2049
  >
2053
2050
  <span class="icon" aria-label="${toggleState}"
2054
- ><arc-icon icon="keyboardArrowDown"></arc-icon></span
2051
+ >${keyboardArrowDown}</span
2055
2052
  >
2056
2053
  </anypoint-icon-button>
2057
2054
  </div>
@@ -2081,7 +2078,7 @@ export class ApiNavigation extends AmfHelperMixin(LitElement) {
2081
2078
  >
2082
2079
  ${item.label}
2083
2080
  <span class="icon new-tab" title="Opens in a new tab"
2084
- ><arc-icon icon="openInNew"></arc-icon></span
2081
+ >${openInNew}</span
2085
2082
  >
2086
2083
  </a>`;
2087
2084
  }
@@ -2131,7 +2128,7 @@ export class ApiNavigation extends AmfHelperMixin(LitElement) {
2131
2128
  data-toggle="types"
2132
2129
  >
2133
2130
  <span class="icon" aria-label="${toggleState}"
2134
- ><arc-icon icon="keyboardArrowDown"></arc-icon></span
2131
+ >${keyboardArrowDown}</span
2135
2132
  >
2136
2133
  </anypoint-icon-button>
2137
2134
  </div>
@@ -2192,7 +2189,7 @@ export class ApiNavigation extends AmfHelperMixin(LitElement) {
2192
2189
  data-toggle="security"
2193
2190
  >
2194
2191
  <span class="icon" aria-label="${toggleState}"
2195
- ><arc-icon icon="keyboardArrowDown"></arc-icon></span
2192
+ >${keyboardArrowDown}</span
2196
2193
  >
2197
2194
  </anypoint-icon-button>
2198
2195
  </div>
package/src/Styles.js CHANGED
@@ -203,6 +203,7 @@ export default css`
203
203
  padding-left: 3px;
204
204
  padding-bottom: 2px;
205
205
  padding-left: 4px;
206
+ fill: var(--method-display-selected-color, #fff);
206
207
  }
207
208
 
208
209