@neovici/cosmoz-bottom-bar 9.0.3 → 9.0.5

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.
@@ -26,17 +26,6 @@ const style = css `
26
26
  z-index: 1;
27
27
 
28
28
  --cosmoz-dropdown-anchor-spacing: 12px 6px;
29
- --paper-button: {
30
- background-color: inherit;
31
- text-transform: none;
32
- border: 0;
33
- border-radius: 0;
34
- font-size: inherit;
35
- color: inherit;
36
- font-weight: inherit;
37
- margin: 0;
38
- padding: 0;
39
- };
40
29
  }
41
30
 
42
31
  :host([force-open]) {
@@ -147,9 +136,7 @@ const useMenuButtons = (host) => {
147
136
  }))
148
137
  .toSorted((a, b) => b.priority - a.priority), [allButtons]);
149
138
  const { maxToolbarItems = 1 } = host;
150
- const toolbarLimit = Math.min(maxToolbarItems, buttonStates.visible.size >= 0
151
- ? buttonStates.visible.size
152
- : allButtons.length);
139
+ const toolbarLimit = Math.min(maxToolbarItems, buttonStates.visible.size);
153
140
  useEffect(() => {
154
141
  processedButtons.forEach(({ element, priority }, i) => {
155
142
  const isVisible = i < toolbarLimit;
@@ -214,9 +201,9 @@ const CosmozBottomBar = (host) => {
214
201
  />
215
202
  </svg>
216
203
  ${map(menuButtons, (menuButton) => html `
217
- <paper-button @click=${() => menuButton.element.click()}
218
- >${menuButton.text}</paper-button
219
- >
204
+ <button @click=${() => menuButton.element.click()}>
205
+ ${menuButton.text}
206
+ </button>
220
207
  `)}
221
208
  </cosmoz-dropdown-menu>
222
209
  <slot name="extra" id="extraSlot"></slot>
package/dist/overflow.js CHANGED
@@ -43,9 +43,6 @@ const setupObserver = (slot, onOverflow) => {
43
43
  newOverflowing.add(c);
44
44
  }
45
45
  else {
46
- if (c.getBoundingClientRect().height !== 0) {
47
- newVisible.add(c);
48
- }
49
46
  observer.observe(c);
50
47
  }
51
48
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neovici/cosmoz-bottom-bar",
3
- "version": "9.0.3",
3
+ "version": "9.0.5",
4
4
  "description": "A responsive bottom-bar that can house buttons/actions and a menu for the buttons that won't fit the available width.",
5
5
  "keywords": [
6
6
  "polymer",