@@ -36,7 +36,7 @@ const closeMenuHandler = () => {
36
36
</script >
37
37
38
38
<style >
39
- .mdc-list-item__subtitle {
39
+ .mdc-deprecated- list-item__subtitle {
40
40
color : var (--mdc-list-item__subtitle , var (#5f6368 ));
41
41
}
42
42
i {
48
48
<svelte:body on:click ={closeMenuHandler } />
49
49
<div id =" toolbar" class =" toolbar mdc-menu-surface--anchor" >
50
50
<div class ="mdc-menu mdc-menu-surface {$$props .class }" bind:this ={element }>
51
- <ul class =" mdc-list" role =" menu" aria-hidden =" true" aria-orientation =" vertical" tabindex =" -1" >
51
+ <ul class =" mdc-deprecated- list- " role =" menu" aria-hidden =" true" aria-orientation =" vertical" tabindex =" -1" >
52
52
{#each menuItems as { icon, label, url, subtitle, action }, i }
53
53
<!-- svelte-ignore a11y-invalid-attribute -->
54
54
{#if subtitle }
55
- <li class =" mdc-list-item" role =" separator" >
56
- <span class ="mdc-list-item__subtitle" >{subtitle }</span >
55
+ <li class =" mdc-deprecated- list-item" role =" separator" >
56
+ <span class ="mdc-deprecated- list-item__subtitle" >{subtitle }</span >
57
57
</li >
58
58
{:else if url }
59
59
<a
60
60
href ={url }
61
61
role =" menuitem"
62
- class =" mdc-list-item"
63
- class:mdc-list-item--activated ={isMenuItemActive (currentUrl , url )}
62
+ class =" mdc-deprecated- list-item"
63
+ class:mdc-deprecated- list-item--activated ={isMenuItemActive (currentUrl , url )}
64
64
aria-current ={isMenuItemActive (currentUrl , url ) ? ' page' : null }
65
65
tabindex ={i === 0 ? 0 : undefined }
66
66
on:blur ={closeMenuHandler }
67
67
>
68
- <span class =" mdc-list-item__ripple" />
68
+ <span class =" mdc-deprecated- list-item__ripple" />
69
69
{#if icon }
70
- <span class =" mdc-list-item__graphic mdc-menu__selection-group-icon" >
70
+ <span class =" mdc-deprecated- list-item__graphic mdc-menu__selection-group-icon" >
71
71
<i class ="material-icons" aria-hidden ="true" >{icon }</i >
72
72
</span >
73
73
{/if }
74
74
{#if label }
75
- <span class ="mdc-list-item__text" >{label }</span >
75
+ <span class ="mdc-deprecated- list-item__text" >{label }</span >
76
76
{/if }
77
77
</a >
78
78
{:else }
79
79
<li
80
80
on:click |preventDefault ={() => handleItemClick (action )}
81
81
on:keydown |preventDefault ={(e ) => handleItemKeydown (e , action )}
82
82
role =" menuitem"
83
- class =" mdc-list-item"
83
+ class =" mdc-deprecated- list-item"
84
84
tabindex ={i === 0 ? 0 : undefined }
85
85
on:blur ={closeMenuHandler }
86
86
>
87
- <span class =" mdc-list-item__ripple" />
87
+ <span class =" mdc-deprecated- list-item__ripple" />
88
88
{#if icon }
89
- <span class =" mdc-list-item__graphic mdc-menu__selection-group-icon" >
89
+ <span class =" mdc-deprecated- list-item__graphic mdc-menu__selection-group-icon" >
90
90
<i class ="material-icons" aria-hidden ="true" >{icon }</i >
91
91
</span >
92
92
{/if }
93
93
{#if label }
94
- <span class ="mdc-list-item__text" >{label }</span >
94
+ <span class ="mdc-deprecated- list-item__text" >{label }</span >
95
95
{/if }
96
96
</li >
97
97
{/if }
0 commit comments