Skip to content

Commit 0752d4e

Browse files
[utils][docs] Replace deprecated clip CSS property with clip-path (#48966)
1 parent 6c65829 commit 0752d4e

5 files changed

Lines changed: 3 additions & 5 deletions

File tree

docs/data/material/components/avatars/UploadAvatars.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default function UploadAvatars() {
3737
accept="image/*"
3838
style={{
3939
border: 0,
40-
clip: 'rect(0 0 0 0)',
40+
clipPath: 'inset(50%)',
4141
height: '1px',
4242
margin: '-1px',
4343
overflow: 'hidden',

docs/data/material/components/avatars/UploadAvatars.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default function UploadAvatars() {
3737
accept="image/*"
3838
style={{
3939
border: 0,
40-
clip: 'rect(0 0 0 0)',
40+
clipPath: 'inset(50%)',
4141
height: '1px',
4242
margin: '-1px',
4343
overflow: 'hidden',

docs/data/material/components/buttons/InputFileUpload.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import Button from '@mui/material/Button';
33
import CloudUploadIcon from '@mui/icons-material/CloudUpload';
44

55
const VisuallyHiddenInput = styled('input')({
6-
clip: 'rect(0 0 0 0)',
76
clipPath: 'inset(50%)',
87
height: 1,
98
overflow: 'hidden',

docs/data/material/components/buttons/InputFileUpload.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import Button from '@mui/material/Button';
33
import CloudUploadIcon from '@mui/icons-material/CloudUpload';
44

55
const VisuallyHiddenInput = styled('input')({
6-
clip: 'rect(0 0 0 0)',
76
clipPath: 'inset(50%)',
87
height: 1,
98
overflow: 'hidden',

packages/mui-utils/src/visuallyHidden/visuallyHidden.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type * as React from 'react';
22

33
const visuallyHidden: React.CSSProperties = {
44
border: 0,
5-
clip: 'rect(0 0 0 0)',
5+
clipPath: 'inset(50%)',
66
height: '1px',
77
margin: '-1px',
88
overflow: 'hidden',

0 commit comments

Comments
 (0)