@neovici/cosmoz-bottom-bar 10.2.2 → 10.2.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.
|
@@ -94,6 +94,10 @@ const style = css `
|
|
|
94
94
|
order: 9999;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
+
#bottomBarToolbar::slotted(:not(slot):not([unstyled]):not([processed])) {
|
|
98
|
+
visibility: hidden;
|
|
99
|
+
}
|
|
100
|
+
|
|
97
101
|
#bottomBarToolbar::slotted(:not(slot)[disabled]) {
|
|
98
102
|
opacity: var(--cosmoz-button-disabled-opacity, 0.15);
|
|
99
103
|
pointer-events: none;
|
|
@@ -174,6 +178,7 @@ const useMenuButtons = (host) => {
|
|
|
174
178
|
useEffect(() => {
|
|
175
179
|
processedButtons.forEach(({ element, priority }, i) => {
|
|
176
180
|
const isVisible = i < toolbarLimit;
|
|
181
|
+
element.toggleAttribute('processed', true);
|
|
177
182
|
element.dataset.visibility = isVisible ? 'visible' : 'hidden';
|
|
178
183
|
element.style.order = String(-priority);
|
|
179
184
|
});
|
package/package.json
CHANGED