Skip to content

Commit

Permalink
bring fix to Material UI version
Browse files Browse the repository at this point in the history
  • Loading branch information
mnajdova committed Feb 20, 2024
1 parent b41f37b commit ed00a4e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion apps/zero-runtime-next-app/src/components/Slider/Slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ export const SliderThumb = styled('span', {
boxShadow: `0px 0px 0px 8px rgba(${theme.vars.palette[color].mainChannel} / 0.16)`,
}
: {
// ...(theme.palette[color].main && { boxShadow: `0px 0px 0px 8px ${alpha(theme.palette[color].main, 0.16)}` }),
boxShadow: `0px 0px 0px 8px ${alpha(theme.palette[color].main, 0.16)}`,
}),
'@media (hover: none)': {
Expand Down
4 changes: 1 addition & 3 deletions packages/mui-material/src/Slider/Slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,7 @@ export const SliderThumb = styled('span', {
},
variants: [
...Object.keys((theme.vars ?? theme).palette)
.filter(
(key) => theme.palette[key]?.main || (theme.vars && theme.vars.palette[key]?.mainChannel),
)
.filter((key) => (theme.vars ?? theme).palette[key].main)
.map((color) => ({
props: { color },
style: {
Expand Down

0 comments on commit ed00a4e

Please sign in to comment.