@neovici/cosmoz-bottom-bar 7.1.1 → 7.1.3
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/cosmoz-bottom-bar.js +9 -13
- package/package.json +1 -1
package/cosmoz-bottom-bar.js
CHANGED
|
@@ -127,18 +127,8 @@ class CosmozBottomBar extends PolymerElement {
|
|
|
127
127
|
*/
|
|
128
128
|
computedBarHeight: {
|
|
129
129
|
type: Number,
|
|
130
|
-
computed:
|
|
131
|
-
'_computeComputedBarHeight(_matchHeightElement, barHeight, _computedBarHeightKicker)',
|
|
132
130
|
notify: true,
|
|
133
131
|
},
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* Kicker to make `computedBarHeight` recalculate
|
|
137
|
-
*/
|
|
138
|
-
_computedBarHeightKicker: {
|
|
139
|
-
type: Number,
|
|
140
|
-
},
|
|
141
|
-
|
|
142
132
|
forceOpen: {
|
|
143
133
|
type: Boolean,
|
|
144
134
|
value: false,
|
|
@@ -211,7 +201,10 @@ class CosmozBottomBar extends PolymerElement {
|
|
|
211
201
|
this._debounceLayoutActions(),
|
|
212
202
|
);
|
|
213
203
|
this._resizeObserver.observe(this);
|
|
214
|
-
this.
|
|
204
|
+
this.computedBarHeight = this._computeComputedBarHeight(
|
|
205
|
+
this._matchHeightElement,
|
|
206
|
+
this.barHeight,
|
|
207
|
+
);
|
|
215
208
|
}
|
|
216
209
|
|
|
217
210
|
disconnectedCallback() {
|
|
@@ -356,7 +349,7 @@ class CosmozBottomBar extends PolymerElement {
|
|
|
356
349
|
|
|
357
350
|
_moveElement(element, toToolbar) {
|
|
358
351
|
const slot = toToolbar ? BOTTOM_BAR_TOOLBAR_SLOT : BOTTOM_BAR_MENU_SLOT,
|
|
359
|
-
tabindex =
|
|
352
|
+
tabindex = '0';
|
|
360
353
|
element.setAttribute('slot', slot);
|
|
361
354
|
element.setAttribute('tabindex', tabindex);
|
|
362
355
|
element.classList.toggle(this.menuClass, !toToolbar);
|
|
@@ -371,7 +364,10 @@ class CosmozBottomBar extends PolymerElement {
|
|
|
371
364
|
if (hidden) {
|
|
372
365
|
return;
|
|
373
366
|
}
|
|
374
|
-
this.
|
|
367
|
+
this.computedBarHeight = this._computeComputedBarHeight(
|
|
368
|
+
this._matchHeightElement,
|
|
369
|
+
this.barHeight,
|
|
370
|
+
);
|
|
375
371
|
}
|
|
376
372
|
|
|
377
373
|
_showHideBottomBar(visible) {
|
package/package.json
CHANGED