@superdispatch/ui 0.40.0 → 0.40.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.
package/dist-node/index.js
CHANGED
|
@@ -3933,14 +3933,17 @@ function overrideToolbar(theme) {
|
|
|
3933
3933
|
}
|
|
3934
3934
|
|
|
3935
3935
|
function overrideTooltip(theme) {
|
|
3936
|
+
var mode = theme.palette.type;
|
|
3937
|
+
var color = mode === 'dark' ? exports.ColorDark.Silver400 : exports.Color.Dark500;
|
|
3936
3938
|
theme.props.MuiTooltip = {
|
|
3937
3939
|
arrow: true
|
|
3938
3940
|
};
|
|
3939
3941
|
theme.overrides.MuiTooltip = {
|
|
3940
3942
|
tooltip: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
3941
3943
|
padding: theme.spacing(1, 1.5),
|
|
3942
|
-
backgroundColor:
|
|
3943
|
-
|
|
3944
|
+
backgroundColor: color,
|
|
3945
|
+
color: exports.Color.White,
|
|
3946
|
+
'--sd-dark-300': exports.Color.Silver500 //tooltip secondary color(Dark300) is invisible in light mode
|
|
3944
3947
|
}),
|
|
3945
3948
|
popperArrow: {
|
|
3946
3949
|
'&[x-placement*="top"] $arrow': {
|
|
@@ -3965,7 +3968,7 @@ function overrideTooltip(theme) {
|
|
|
3965
3968
|
}
|
|
3966
3969
|
},
|
|
3967
3970
|
arrow: {
|
|
3968
|
-
color
|
|
3971
|
+
color,
|
|
3969
3972
|
fontSize: theme.spacing(1)
|
|
3970
3973
|
}
|
|
3971
3974
|
};
|