File tree 1 file changed +22
-25
lines changed
1 file changed +22
-25
lines changed Original file line number Diff line number Diff line change @@ -51,35 +51,32 @@ img {
51
51
class:mdc-deprecated-list-item--activated ={activated }
52
52
class:mdc-deprecated-list-item--disabled ={nonInteractive }
53
53
data-mdc-dialog-action ={$$props [' data-mdc-dialog-action' ]}
54
- on:click
55
- on:keydown
56
- on:keypress
57
- on:keyup
58
- {tabindex }
59
54
>
60
- {#if graphicURL }
61
- <div class =" mdc-deprecated-list-item__graphic" >
62
- <img class ="br-50" alt ={graphicAlt } src ={graphicURL } />
63
- </div >
64
- {:else if icon }
65
- <i class ="material-icons mdc-deprecated-list-item__graphic" aria-hidden ="true" >{icon }</i >
66
- {/if }
55
+ <div role ="button" {tabindex } on:click on:keydown on:keypress on:keyup >
56
+ {#if graphicURL }
57
+ <div class =" mdc-deprecated-list-item__graphic" >
58
+ <img class ="br-50" alt ={graphicAlt } src ={graphicURL } />
59
+ </div >
60
+ {:else if icon }
61
+ <i class ="material-icons mdc-deprecated-list-item__graphic" aria-hidden ="true" >{icon }</i >
62
+ {/if }
67
63
68
- <span class =" mdc-deprecated-list-item__ripple" />
64
+ <span class =" mdc-deprecated-list-item__ripple" />
69
65
70
- <span class =" mdc-deprecated-list-item__text" class:nonInteractive >
71
- {#if primary || secondary }
72
- <span class ="mdc-deprecated-list-item__primary-text" >{primary }</span >
73
- <span class ="mdc-deprecated-list-item__secondary-text" >{secondary }</span >
74
- {:else }
75
- {text }
76
- <slot />
77
- {/if }
78
- </span >
66
+ <span class =" mdc-deprecated-list-item__text" class:nonInteractive >
67
+ {#if primary || secondary }
68
+ <span class ="mdc-deprecated-list-item__primary-text" >{primary }</span >
69
+ <span class ="mdc-deprecated-list-item__secondary-text" >{secondary }</span >
70
+ {:else }
71
+ {text }
72
+ <slot />
73
+ {/if }
74
+ </span >
79
75
80
- <div class =" mdc-deprecated-list-item__meta" >
81
- {meta }
82
- <slot name =" meta" />
76
+ <div class =" mdc-deprecated-list-item__meta" >
77
+ {meta }
78
+ <slot name =" meta" />
79
+ </div >
83
80
</div >
84
81
</li >
85
82
You can’t perform that action at this time.
0 commit comments