@lvce-editor/status-bar-worker 3.9.0 → 3.9.2
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.
|
@@ -1599,7 +1599,7 @@ const toStatusBarItem = uiStatusBarItem => {
|
|
|
1599
1599
|
value: ''
|
|
1600
1600
|
});
|
|
1601
1601
|
}
|
|
1602
|
-
const ariaLabel = uiStatusBarItem.text || uiStatusBarItem.tooltip || uiStatusBarItem.name;
|
|
1602
|
+
const ariaLabel = uiStatusBarItem.ariaLabel || uiStatusBarItem.text || uiStatusBarItem.tooltip || uiStatusBarItem.name;
|
|
1603
1603
|
const tooltip = uiStatusBarItem.tooltip || ariaLabel;
|
|
1604
1604
|
return {
|
|
1605
1605
|
ariaLabel,
|
|
@@ -1618,6 +1618,7 @@ const getActualIcon = extensionHostStatusBarItem => {
|
|
|
1618
1618
|
};
|
|
1619
1619
|
const toUiStatusBarItem = extensionHostStatusBarItem => {
|
|
1620
1620
|
return {
|
|
1621
|
+
ariaLabel: extensionHostStatusBarItem.ariaLabel || '',
|
|
1621
1622
|
command: extensionHostStatusBarItem.command || '',
|
|
1622
1623
|
icon: getActualIcon(extensionHostStatusBarItem),
|
|
1623
1624
|
name: extensionHostStatusBarItem.id || extensionHostStatusBarItem.name || '',
|
|
@@ -1851,7 +1852,7 @@ const getTextVirtualDom = (element, name) => {
|
|
|
1851
1852
|
const getIconVirtualDom = (element, name) => {
|
|
1852
1853
|
return [{
|
|
1853
1854
|
childCount: 0,
|
|
1854
|
-
className: mergeClassNames(MaskIcon, element.value, element.spinning ? 'Spinning' : ''),
|
|
1855
|
+
className: mergeClassNames(MaskIcon, 'StatusBarIcon', element.value, element.spinning ? 'Spinning' : ''),
|
|
1855
1856
|
name,
|
|
1856
1857
|
type: Div
|
|
1857
1858
|
}];
|