@neovici/cosmoz-bottom-bar 10.1.0 → 10.2.1
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.
|
@@ -166,7 +166,7 @@ const useMenuButtons = (host) => {
|
|
|
166
166
|
.map((btn) => ({
|
|
167
167
|
element: btn,
|
|
168
168
|
priority: Number(btn.dataset.priority ?? 0),
|
|
169
|
-
text: btn.textContent?.trim() || '',
|
|
169
|
+
text: btn.getAttribute('title') || btn.textContent?.trim() || '',
|
|
170
170
|
}))
|
|
171
171
|
.toSorted((a, b) => b.priority - a.priority), [allButtons]);
|
|
172
172
|
const { maxToolbarItems = 1 } = host;
|
|
@@ -242,7 +242,10 @@ const CosmozBottomBar = (host) => {
|
|
|
242
242
|
/>
|
|
243
243
|
</svg>
|
|
244
244
|
${map(menuButtons, (menuButton) => html `
|
|
245
|
-
<button
|
|
245
|
+
<button
|
|
246
|
+
title=${menuButton.text}
|
|
247
|
+
@click=${() => menuButton.element.click()}
|
|
248
|
+
>
|
|
246
249
|
${menuButton.text}
|
|
247
250
|
</button>
|
|
248
251
|
`)}
|
package/package.json
CHANGED