File tree 12 files changed +48
-28
lines changed
12 files changed +48
-28
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,10 @@ export default function BasicMenu() {
29
29
anchorEl = { anchorEl }
30
30
open = { open }
31
31
onClose = { handleClose }
32
- MenuListProps = { {
33
- 'aria-labelledby' : 'basic-button' ,
32
+ slotProps = { {
33
+ list : {
34
+ 'aria-labelledby' : 'basic-button' ,
35
+ } ,
34
36
} }
35
37
>
36
38
< MenuItem onClick = { handleClose } > Profile</ MenuItem >
Original file line number Diff line number Diff line change @@ -29,8 +29,10 @@ export default function BasicMenu() {
29
29
anchorEl = { anchorEl }
30
30
open = { open }
31
31
onClose = { handleClose }
32
- MenuListProps = { {
33
- 'aria-labelledby' : 'basic-button' ,
32
+ slotProps = { {
33
+ list : {
34
+ 'aria-labelledby' : 'basic-button' ,
35
+ } ,
34
36
} }
35
37
>
36
38
< MenuItem onClick = { handleClose } > Profile</ MenuItem >
Original file line number Diff line number Diff line change @@ -79,8 +79,10 @@ export default function CustomizedMenus() {
79
79
</ Button >
80
80
< StyledMenu
81
81
id = "demo-customized-menu"
82
- MenuListProps = { {
83
- 'aria-labelledby' : 'demo-customized-button' ,
82
+ slotProps = { {
83
+ list : {
84
+ 'aria-labelledby' : 'demo-customized-button' ,
85
+ } ,
84
86
} }
85
87
anchorEl = { anchorEl }
86
88
open = { open }
Original file line number Diff line number Diff line change @@ -79,8 +79,10 @@ export default function CustomizedMenus() {
79
79
</ Button >
80
80
< StyledMenu
81
81
id = "demo-customized-menu"
82
- MenuListProps = { {
83
- 'aria-labelledby' : 'demo-customized-button' ,
82
+ slotProps = { {
83
+ list : {
84
+ 'aria-labelledby' : 'demo-customized-button' ,
85
+ } ,
84
86
} }
85
87
anchorEl = { anchorEl }
86
88
open = { open }
Original file line number Diff line number Diff line change @@ -27,8 +27,10 @@ export default function FadeMenu() {
27
27
</ Button >
28
28
< Menu
29
29
id = "fade-menu"
30
- MenuListProps = { {
31
- 'aria-labelledby' : 'fade-button' ,
30
+ slotProps = { {
31
+ list : {
32
+ 'aria-labelledby' : 'fade-button' ,
33
+ } ,
32
34
} }
33
35
anchorEl = { anchorEl }
34
36
open = { open }
Original file line number Diff line number Diff line change @@ -27,8 +27,10 @@ export default function FadeMenu() {
27
27
</ Button >
28
28
< Menu
29
29
id = "fade-menu"
30
- MenuListProps = { {
31
- 'aria-labelledby' : 'fade-button' ,
30
+ slotProps = { {
31
+ list : {
32
+ 'aria-labelledby' : 'fade-button' ,
33
+ } ,
32
34
} }
33
35
anchorEl = { anchorEl }
34
36
open = { open }
Original file line number Diff line number Diff line change @@ -30,8 +30,10 @@ export default function GroupedMenu() {
30
30
anchorEl = { anchorEl }
31
31
open = { open }
32
32
onClose = { handleClose }
33
- MenuListProps = { {
34
- 'aria-labelledby' : 'basic-button' ,
33
+ slotProps = { {
34
+ list : {
35
+ 'aria-labelledby' : 'basic-button' ,
36
+ } ,
35
37
} }
36
38
>
37
39
< ListSubheader > Category 1</ ListSubheader >
Original file line number Diff line number Diff line change @@ -30,8 +30,10 @@ export default function GroupedMenu() {
30
30
anchorEl = { anchorEl }
31
31
open = { open }
32
32
onClose = { handleClose }
33
- MenuListProps = { {
34
- 'aria-labelledby' : 'basic-button' ,
33
+ slotProps = { {
34
+ list : {
35
+ 'aria-labelledby' : 'basic-button' ,
36
+ } ,
35
37
} }
36
38
>
37
39
< ListSubheader > Category 1</ ListSubheader >
Original file line number Diff line number Diff line change @@ -47,9 +47,6 @@ export default function LongMenu() {
47
47
</ IconButton >
48
48
< Menu
49
49
id = "long-menu"
50
- MenuListProps = { {
51
- 'aria-labelledby' : 'long-button' ,
52
- } }
53
50
anchorEl = { anchorEl }
54
51
open = { open }
55
52
onClose = { handleClose }
@@ -60,6 +57,9 @@ export default function LongMenu() {
60
57
width : '20ch' ,
61
58
} ,
62
59
} ,
60
+ list : {
61
+ 'aria-labelledby' : 'long-button' ,
62
+ } ,
63
63
} }
64
64
>
65
65
{ options . map ( ( option ) => (
Original file line number Diff line number Diff line change @@ -47,9 +47,6 @@ export default function LongMenu() {
47
47
</ IconButton >
48
48
< Menu
49
49
id = "long-menu"
50
- MenuListProps = { {
51
- 'aria-labelledby' : 'long-button' ,
52
- } }
53
50
anchorEl = { anchorEl }
54
51
open = { open }
55
52
onClose = { handleClose }
@@ -60,6 +57,9 @@ export default function LongMenu() {
60
57
width : '20ch' ,
61
58
} ,
62
59
} ,
60
+ list : {
61
+ 'aria-labelledby' : 'long-button' ,
62
+ } ,
63
63
} }
64
64
>
65
65
{ options . map ( ( option ) => (
Original file line number Diff line number Diff line change @@ -55,9 +55,11 @@ export default function SimpleListMenu() {
55
55
anchorEl = { anchorEl }
56
56
open = { open }
57
57
onClose = { handleClose }
58
- MenuListProps = { {
59
- 'aria-labelledby' : 'lock-button' ,
60
- role : 'listbox' ,
58
+ slotProps = { {
59
+ list : {
60
+ 'aria-labelledby' : 'lock-button' ,
61
+ role : 'listbox' ,
62
+ } ,
61
63
} }
62
64
>
63
65
{ options . map ( ( option , index ) => (
Original file line number Diff line number Diff line change @@ -58,9 +58,11 @@ export default function SimpleListMenu() {
58
58
anchorEl = { anchorEl }
59
59
open = { open }
60
60
onClose = { handleClose }
61
- MenuListProps = { {
62
- 'aria-labelledby' : 'lock-button' ,
63
- role : 'listbox' ,
61
+ slotProps = { {
62
+ list : {
63
+ 'aria-labelledby' : 'lock-button' ,
64
+ role : 'listbox' ,
65
+ } ,
64
66
} }
65
67
>
66
68
{ options . map ( ( option , index ) => (
You can’t perform that action at this time.
0 commit comments