@recursica/adapter-mui-v7 1.3.1 → 1.3.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.
package/package.json
CHANGED
|
@@ -74,6 +74,8 @@
|
|
|
74
74
|
|
|
75
75
|
.sliderRoot {
|
|
76
76
|
width: 100%;
|
|
77
|
+
/* MUI defaults the root to 4px, so the thumb overflows and the block collapses; match the thumb height. */
|
|
78
|
+
height: var(--recursica_ui-kit_components_slider_properties_thumb-size);
|
|
77
79
|
box-sizing: border-box;
|
|
78
80
|
color: inherit;
|
|
79
81
|
font-family: inherit;
|
|
@@ -84,6 +86,7 @@
|
|
|
84
86
|
|
|
85
87
|
.sliderTrack {
|
|
86
88
|
height: var(--recursica_ui-kit_components_slider_properties_track-height);
|
|
89
|
+
opacity: 1; /* MUI fades the rail to 0.38 by default, which washes out the token color */
|
|
87
90
|
border-radius: var(
|
|
88
91
|
--recursica_ui-kit_components_slider_properties_track-border-radius
|
|
89
92
|
);
|
|
@@ -249,6 +252,14 @@
|
|
|
249
252
|
display: flex !important;
|
|
250
253
|
align-items: center !important;
|
|
251
254
|
justify-content: center !important;
|
|
255
|
+
|
|
256
|
+
/* The transform override above defeats MUI's scale(0) hiding, so hide until MUI marks it open. */
|
|
257
|
+
opacity: 0;
|
|
258
|
+
pointer-events: none;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.sliderTooltip:global(.MuiSlider-valueLabelOpen) {
|
|
262
|
+
opacity: 1;
|
|
252
263
|
}
|
|
253
264
|
|
|
254
265
|
.sliderTooltip * {
|